blob: f86b423601ff6f736a9e010e410937f21081c615 [file] [log] [blame]
package com.mirantis.mk
/**
*
* Jenkins common functions
*
*/
/**
* Get Jenkins job running builds
* @param jobName job name
* @return list of running builds
*/
def getJobRunningBuilds(jobName){
return Jenkins.instance.items.find{it -> it.name.equals(jobName)}.builds.findAll{build -> build.isBuilding()}
}