Skip to content

Commit 957a0b9

Browse files
committed
APM-4219 Sort by latest to bring back artifact by time
1 parent 3b6c972 commit 957a0b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

azure/components/set-facts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ steps:
2121
set -euo pipefail
2222
echo "!!! If you get an error here, it is because '${{ parameters.service_name }}' is not the source alias name of the artifact"
2323
ls -R $(Pipeline.Workspace)
24-
export SERVICE_ARTIFACT_NAME=`ls $(Pipeline.Workspace)/s/${{ parameters.service_name }}`
24+
export SERVICE_ARTIFACT_NAME=`ls -t $(Pipeline.Workspace)/s/${{ parameters.service_name }}`
2525
echo "##vso[task.setvariable variable=SERVICE_ARTIFACT_NAME]$SERVICE_ARTIFACT_NAME"
2626
echo "Set Artifact Name of: $SERVICE_ARTIFACT_NAME"
2727
displayName: 'Set SERVICE_ARTIFACT_NAME'

0 commit comments

Comments
 (0)