diff --git a/Jenkinsfile b/Jenkinsfile index 1396217..73f7d83 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -49,17 +49,17 @@ pipeline { anyOf { branch 'stable' branch 'unstable' - tag + buildingTag() } } steps { sshagent(credentials: ['1cf72f47-b70c-4f90-a958-020956099d19']) { scipt { - SUB_PATH="""${sh( + def SUB_PATH = """${sh( returnStdout: true, script: 'echo "${GIT_BRANCH#*/}"' )}""".trim() - if (tag) { + if (buildingTag()) { SUB_PATH="${env.TAG_NAME}" } withEnv(["SUB_PATH=${SUB_PATH}"]) {