Wrap git init in correct dir
@@ -51,17 +51,21 @@ pipeline {
env.TAG_DOT_X = sh(script: "./scripts/jenkins/tags.sh dot_x", returnStdout: true)
}
}
+ dir("${BASE_DIR}") {
withEnv(["BRANCH_NAME=tags/${env.TAG_BARE}"]){
withGitRelease() {
stash(allowEmpty: true, name: 'source', useDefaultExcludes: false)
}
}
+ }
deleteDir()
+ dir("${BASE_DIR}") {
unstash 'source'
}
}
}
}
+ }
stage('Release') {
options { skipDefaultCheckout () }
stages{
