Skip to content

Instantly share code, notes, and snippets.

View luukdobber's full-sized avatar

Luuk Dobber luukdobber

View GitHub Profile
import hudson.model.*
import jenkins.model.Jenkins
def JobName = "Your PR-pipeline job name here"
def buildingJobs = Jenkins.instance.getAllItems(Job.class).findAll {
it.getName() == JobName && it.isBuilding()
}
def latestBuildForPR = []