DBZ-4956 fixing bug, where last build is renamed instead of last completed

This commit is contained in:
Martin Medek 2022-05-03 14:58:00 +02:00 committed by Jiří Novotný
parent 35353b0ed9
commit 8fe2c08a8f
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ pipeline {
continue
}
def jobName = "connector-debezium-${db}-matrix-test"
def build = jenkins.model.Jenkins.instance.getItem(jobName).lastBuild
def build = jenkins.model.Jenkins.instance.getItem(jobName).getLastCompletedBuild()
if (!build) {
println "No build of ${jobName} found!"

View File

@ -107,7 +107,7 @@ pipeline {
return
}
def build = jenkins.model.Jenkins.instance.getItem("${entry.key}").lastBuild
def build = jenkins.model.Jenkins.instance.getItem("${entry.key}").getLastCompletedBuild()
if (!build) {
println "No build of ${entry.key} found!"