Skip to content

Commit fd7b46d

Browse files
committed
allow no match
1 parent c4a55ba commit fd7b46d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

azure/templates/deploy-service.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ steps:
133133
export RELEASE_RELEASEID=$(Build.BuildId)
134134
135135
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`
136+
export ASSUMED_VERSION=`echo $SERVICE_ARTIFACT_NAME | ( grep -E -o "v[0-9]+\.[0-9]+\.[0-9]+-?[a-z]*" || true ) | tail -1`
137137
echo "Setting deployed version"
138138
if [[ ! -z $ASSUMED_VERSION ]]; then
139139
echo "Setting deployed=assumed"

0 commit comments

Comments
 (0)