blob: f86b423601ff6f736a9e010e410937f21081c615 [file] [log] [blame]
Jakub Josef4edd7432017-05-10 17:58:56 +02001package com.mirantis.mk
2
3/**
4 *
5 * Jenkins common functions
6 *
7 */
8
9/**
10 * Get Jenkins job running builds
11 * @param jobName job name
12 * @return list of running builds
13 */
14def getJobRunningBuilds(jobName){
15 return Jenkins.instance.items.find{it -> it.name.equals(jobName)}.builds.findAll{build -> build.isBuilding()}
16}