[Geoserver-devel] Too many Jenkins build failures related to workspace/repository management

Hi,
lately we have had a ton of failed builds on the build server related to file management,
stuff like:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.4:jar (default-jar) on project gs-restconfig-wcs: Error assembling JAR: /var/lib/jenkins/workspace/java11/geoserver/src/restconfig-wcs/pom.xml isn’t a file. → [Help 2]

or:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.1.0:jar (default-jar) on project gt-xsd-fes: Error assembling JAR: /var/lib/jenkins/workspace/java11/geotools/modules/extension/xsd/xsd-fes/pom.xml isn’t a file. → [Help 3]

I’m guessing this is due to “too much sharing” between the builds, which are running with higher concurrency.
I believe Jody modified them to have different versions to build in parallel, is that right?
I see a “Build A”, “Build B”, “Build C” throttling categories but it’s not clear to me what they relate to… but I see multiple
builds running in parallel, that should not, here:

image.png

Why not? Because for example the first two are sharing the same /var/lib/jenkins/workspace/java11/geoserver workspace.
If we want for them to run in parallel, at a minimum there should be a different workspace per version of GeoTools/GeoServer
(and a separate one between java 8 and java 11).

I’m also not sure the local maven repository is designed to allow multiple builds to modify it at the same time. Either
multiple repos are used for the different categories, or the concurrent safe local repo Maven plugin should be installed:
http://takari.io/book/30-team-maven.html

Let’s discuss it at tonight’s meeting

Cheers
Andrea

···

== GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.