We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e173704 commit 002d158Copy full SHA for 002d158
1 file changed
azure/templates/deploy-service.yml
@@ -131,8 +131,9 @@ steps:
131
export SOURCE_COMMIT_ID=$(Build.SourceVersion)
132
export RELEASE_RELEASEID=$(Build.BuildId)
133
134
- if [[ $SERVICE_ARTIFACT_NAME == v* ]]; then
135
- export DEPLOYED_VERSION=`echo $SERVICE_ARTIFACT_NAME | grep -E -o "v[0-9]+\.[0-9]+\.[0-9]+-?[a-z]*" | tail -1`
+ ASSUMED_VERSION==$(echo $SERVICE_ARTIFACT_NAME | grep -E -o "v[0-9]+\.[0-9]+\.[0-9]+-?[a-z]*" | tail -1")
+ if [[ ! -z $ASSUMED_VERSION ]]; then
136
+ export DEPLOYED_VERSION=$ASSUMED_VERSION
137
else
138
export DEPLOYED_VERSION="${{ parameters.fully_qualified_service_name }}"
139
fi
0 commit comments