java - How to handle concurrent Maven builds on Jenkins? -
i use jenkins lot , lots of different jobs run on cluster. every , job fails obscure error , i've been able debug fact job using artifact x , job b has downloaded or built fresh version of (with maven).
the job fails java.lang.noclassdeffounderror or else zip file being corrupt or segfault zip implementation java using.
so obvious solution use private local maven repository jobs quite disk , internet expensive solution. mean each job's maven download whole internet.
for cases eager loading of class files jar file corrupts helps limit damage don't want everything.
any other solutions? sort of improved locking repository?
yes, looks maven doesn't concurrent access single local repository (there issue opened recently, 7 years ago). creating repo each job quite massive. however, there variable $executor_number
, maybe use create maven local repo per each jenkins executor.
Comments
Post a Comment