Jakub Josef | 4edd743 | 2017-05-10 17:58:56 +0200 | [diff] [blame] | 1 | package 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 | */ | ||||
14 | def getJobRunningBuilds(jobName){ | ||||
15 | return Jenkins.instance.items.find{it -> it.name.equals(jobName)}.builds.findAll{build -> build.isBuilding()} | ||||
16 | } |