Sha256: 2c19e1bb7a0c34e8859d533027c9be4c546e022158f01f4f364e5363bcf0a971
Contents?: true
Size: 647 Bytes
Versions: 4
Compression:
Stored size: 647 Bytes
Contents
def upstream_jobs = [<%= upstream_jobs.each_key.map { |job_name| "'#{job_name}'" }.join(", ") %>] // Iterate list -- NOTE: we cannot use groovy style or even modern java style iteration for (int i = 0; i < upstream_jobs.size(); i++) { def job = Jenkins.instance.getItem(upstream_jobs[i]) if (!job) { error("cannot find upstream job ${upstream_jobs[i]}") } def result = job.getLastBuild().getResult() if (result != Result.SUCCESS && result != Result.UNSTABLE) { echo "${upstream_jobs[i]} did not finish successfully, aborting this build" currentBuild.result = 'NOT_BUILT'; return; } }
Version data entries
4 entries across 4 versions & 1 rubygems