Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (12 sloc) 299 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) {
builderStopIfNextHourIsImminent(stack)
}
}
}
parallel actions
}