Skip to content
Snippets Groups Projects
Commit ca65401f authored by Lars Bilke's avatar Lars Bilke
Browse files

[Jenkins] Fixed release build.

parent 11eaad52
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ pipeline {
if (env.JOB_NAME == 'ufz/ogs/master') {
build_shared = 'OFF'
}
if (currentBuild.number == 1) {
if (currentBuild.number == 1 || buildingTag()) {
stage_required.full = true
return true
}
......@@ -725,18 +725,11 @@ pipeline {
}
// *************************** Post ************************************
stage('Post') {
agent any
agent { label "master"}
when { buildingTag() }
steps {
script {
def helper = new ogs.helper()
checkout scm
def tag = helper.getTag()
if (tag != "") {
keepBuild()
currentBuild.displayName = tag
helper.notification(msg: "Marked build for ${tag}.", script: this)
}
}
keepBuild()
script { currentBuild.displayName = tag }
}
}
} // end parallel
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment