fix .version file creation in release builds
This commit is contained in:
parent
428f1d47ee
commit
68997983e5
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue