Skip to content

Commit

Permalink
Git flow
Browse files Browse the repository at this point in the history
  • Loading branch information
voloda committed Jan 20, 2019
1 parent 4738794 commit d308db7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ pipeline {
when { expression { env.TAG_NAME != null } }
steps {
script {
env.VERSION_NUMBER = "${env.TAG_NAME}".replace('build-', '')
currentBuild.displayName = "#" + env.VERSION_NUMBER
env.TAG_VERSION_NUMBER = "${env.TAG_NAME}".replace('build-', '')
}

echo 'Checkout'
Expand All @@ -31,7 +30,7 @@ pipeline {

echo 'Compiling'

bat "\"${tool name: 'Default', type: 'msbuild'}\\msbuild.exe\" \"build.msbuild\" /p:BuildNumber=${VERSION_NUMBER}"
bat "\"${tool name: 'Default', type: 'msbuild'}\\msbuild.exe\" \"build.msbuild\" /p:BuildNumber=${env.TAG_VERSION_NUMBER}"

dir ('bin') {
stash 'build'
Expand Down

0 comments on commit d308db7

Please sign in to comment.