We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4a55ba commit fd7b46dCopy full SHA for fd7b46d
1 file changed
azure/templates/deploy-service.yml
@@ -133,7 +133,7 @@ steps:
133
export RELEASE_RELEASEID=$(Build.BuildId)
134
135
echo "Setting assumed version"
136
- ASSUMED_VERSION=`echo $SERVICE_ARTIFACT_NAME | grep -E -o "v[0-9]+\.[0-9]+\.[0-9]+-?[a-z]*" | tail -1`
+ export ASSUMED_VERSION=`echo $SERVICE_ARTIFACT_NAME | ( grep -E -o "v[0-9]+\.[0-9]+\.[0-9]+-?[a-z]*" || true ) | tail -1`
137
echo "Setting deployed version"
138
if [[ ! -z $ASSUMED_VERSION ]]; then
139
echo "Setting deployed=assumed"
0 commit comments