Skip to content

Commit d54a28e

Browse files
authored
Merge pull request #434 from NHSDigital/apm-4219-handle-coverage-reports-in-builds
APM-4219 Sort by latest to bring back artifact by time
2 parents 3b6c972 + 0beb74c commit d54a28e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

azure/components/set-facts.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ parameters:
1919
steps:
2020
- bash: |
2121
set -euo pipefail
22-
echo "!!! If you get an error here, it is because '${{ parameters.service_name }}' is not the source alias name of the artifact"
22+
echo "!!! Using ls -t will set the latest file for the artifact. 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)