Skip to content

Commit

Permalink
generate demo site version based on build number
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanh Nguyen committed Nov 11, 2022
1 parent b669ab1 commit 7110863
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .azure/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ stages:
echo '##vso[task.setvariable variable=APP_VERSION]'$APP_VERSION
APP_VERSION_BUILD=${APP_VERSION}-b$(Build.BuildId)
echo '##vso[task.setvariable variable=APP_VERSION_BUILD]'$APP_VERSION_BUILD
echo sed -i 's/version\s*=.*$/version = $(APP_VERSION_BUILD)/' ./src/main/g8/default.properties
sed -i 's/version\s*=.*$/version = $(APP_VERSION_BUILD)/' ./src/main/g8/default.properties
cat ./src/main/g8/default.properties
sed -i 's/version\s*=.*$/version = ${APP_VERSION_BUILD}/' ./src/main/g8/default.properties
displayName: Init app name, version and build id
- task: Go@0
inputs:
Expand Down

0 comments on commit 7110863

Please sign in to comment.