Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (12 sloc) 295 Bytes
def call(stacks, lockName = null) {
def actions = [:]
for (int i = 0; i < stacks.size(); i++) {
def stack = stacks.get(i)
actions[stack] = {
lock(stack) {
builderStopIfRunningFor(stack, 30)
}
}
}
parallel actions
}