File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ steps:
132132 export RELEASE_RELEASEID=$(Build.BuildId)
133133
134134 if [[ $SERVICE_ARTIFACT_NAME == v* ]]; then
135- export DEPLOYED_VERSION=`echo $SERVICE_ARTIFACT_NAME | grep -o "v[0-9]\ +\.[0-9]\ +\.[0-9]\+-[[:alpha:]]\+ " | tail -1`
135+ export DEPLOYED_VERSION=`echo $SERVICE_ARTIFACT_NAME | grep -E - o "v[0-9]+\.[0-9]+\.[0-9]+-?[a-z]* " | tail -1`
136136 else
137137 export DEPLOYED_VERSION="${{ parameters.fully_qualified_service_name }}"
138138 fi
@@ -203,7 +203,7 @@ steps:
203203 source $(SERVICE_DIR)/.build_env_vars
204204
205205 if [[ $SERVICE_ARTIFACT_NAME == v* ]]; then
206- export DEPLOYED_VERSION=`echo $SERVICE_ARTIFACT_NAME | grep -o "v[0-9]\ +\.[0-9]\ +\.[0-9]\+-[[:alpha:]]\+ " | tail -1`
206+ export DEPLOYED_VERSION=`echo $SERVICE_ARTIFACT_NAME | grep -E - o "v[0-9]+\.[0-9]+\.[0-9]+-?[a-z]* " | tail -1`
207207 else
208208 export DEPLOYED_VERSION="${{ parameters.fully_qualified_service_name }}"
209209 fi
You can’t perform that action at this time.
0 commit comments