Update 'Jenkinsfile'

fix GIT_BRANCH var
This commit is contained in:
Roberto Cirillo 2022-09-21 14:27:56 +02:00
parent c1c1e2fb01
commit d298ea841a
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -13,7 +13,7 @@ pipeline {
environment {
JAVA_HOME='/usr/lib/jvm/java-8-openjdk-amd64'
GIT_URL= "${params.GIT_URL}"
GIT_BRANCH="${GIT_BRANCH.split('/').size() > 1 ? GIT_BRANCH.split('/')[1..-1].join('/') : GIT_BRANCH}"
GIT_BRANCH="${params.GIT_BRANCH.split('/').size() > 1 ? params.GIT_BRANCH.split('/')[1..-1].join('/') : params.GIT_BRANCH}"
// GIT_BRANCH= "${params.GIT_BRANCH.split("/")[1]}"
// GIT_BRANCH= "${params.GIT_BRANCH}"
}