Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions azure/components/set-facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ parameters:
steps:
- bash: |
set -euo pipefail
echo "!!! If you get an error here, it is because '${{ parameters.service_name }}' is not the source alias name of the artifact"
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"
ls -R $(Pipeline.Workspace)
export SERVICE_ARTIFACT_NAME=`ls $(Pipeline.Workspace)/s/${{ parameters.service_name }}`
export SERVICE_ARTIFACT_NAME=`ls -t $(Pipeline.Workspace)/s/${{ parameters.service_name }}`
echo "##vso[task.setvariable variable=SERVICE_ARTIFACT_NAME]$SERVICE_ARTIFACT_NAME"
echo "Set Artifact Name of: $SERVICE_ARTIFACT_NAME"
displayName: 'Set SERVICE_ARTIFACT_NAME'
Expand Down