Jenkinsfile: don't use Map.remove() as it is forbidden
When retriggering flaky builds, do not use the non-CPS method Map.remove() and instead create a new Map. Bug: Issue 11876 Change-Id: I383a2351ad907acd19d21c459a0fd660e8abe028
This commit is contained in:
committed by
David Pursehouse
parent
262a4da88f
commit
7637d661b9
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -196,7 +196,7 @@ def findFlakyBuilds() {
|
||||
def retryBuilds = []
|
||||
flaky.each {
|
||||
def mode = it.key
|
||||
Builds.verification.remove(mode)
|
||||
Builds.verification = Builds.verification.findAll { it.key != mode }
|
||||
retryBuilds += mode
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user