Skip to content

Commit

Permalink
Update pipeline-build-and-deploy.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
sasorrentino committed Aug 4, 2022
1 parent f3ee0ae commit 8939964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .nexiazuredevops/pipeline-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ stages:
inputs:
targetType: 'inline'
script: |
APP_VERSION=$(cat pom.xml | grep '^.*<version>' | sed -n 2p | awk -F'[><]' '{print $3}')
APP_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo $APP_VERSION
echo "##vso[task.setvariable variable=APP_VERSION;isOutput=true]$APP_VERSION"
failOnStderr: true
Expand Down

0 comments on commit 8939964

Please sign in to comment.