-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins: 2.73.2.1 workflow-cps-global-lib:2.9
-
-
749.v70084559234a_
Intermittently, when a pipeline uses the "@Grab" notation, it results in the following error:
java.lang.RuntimeException: Error grabbing Grapes – [unresolved dependency: commons-codec#commons-codec;1.9: java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909)]
If this is related to GROOVY-7407, perhaps the recommended WorkaroundGroovy7407WrappingGrapeEngine.java could be imported into workflow-cps-global-lib and called the first time a trusted library is loaded (before it can attempt to grab anything)?
- is duplicated by
-
JENKINS-75141 Concurrent '@Grab' May Lead to 'Error grabbing Grapes' Error Due to Lack of Lock on Ivy Cache
-
- Closed
-
- links to
This is reliably reproducible if one runs a multibranch pipeline with multiple branches building concurrently attempting to Grab via a globally configured pipeline library.
Here's an example: https://github.com/samrocketman/jenkins-bootstrap-jervis/issues/19