DBZ-4956 fixing bug, where last build is renamed instead of last completed
This commit is contained in:
parent
35353b0ed9
commit
8fe2c08a8f
@ -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!"
|
||||
|
@ -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!"
|
||||
|
Loading…
Reference in New Issue
Block a user