fix .version file creation in release builds

This commit is contained in:
Roman Volosovskyi 2018-05-09 15:19:18 +03:00 committed by janherich
parent 428f1d47ee
commit 68997983e5
No known key found for this signature in database
GPG Key ID: C23B473AFBE94D13
2 changed files with 4 additions and 6 deletions

View File

@ -34,11 +34,11 @@ node ('macos1'){
error "Wrong branch name format: " + BRANCH_NAME + ", but it should be `release/version`"
}
checkout
version = BRANCH_NAME.substring(8)
sh 'echo "' + version + '" > .version'
checkout scm
sh 'git fetch --tags'
sh 'rm -rf node_modules'

View File

@ -34,13 +34,11 @@ node ('macos1'){
error "Wrong branch name format: " + BRANCH_NAME + ", but it should be `release/version`"
}
checkout scm
version = BRANCH_NAME.substring(8)
sh 'echo "' + version + '" > .version'
println version
checkout scm
sh 'git fetch --tags'
sh 'rm -rf node_modules'