Maven artifact consistency when using multiple slaves

20 views
Skip to first unread message

Christian Flamm

unread,
Jul 2, 2015, 7:23:08 AM7/2/15
to jenkins...@googlegroups.com
Hi,

we're using a couple of slaves to build our many branches "on-push". There is no fix assignment between slave node and branch-building job, so it will happen regularly that a build job is run on a different node then the build job before.

Each job stores its Maven artifacts in a job-specific Maven repository - which is not only job-specific but unfortunately also slave-node-specific.

Scenario:
  • Maven reactor build job n of branch B runs on slave x. Created artifacts are stored in the job-specific Maven repository for branch B on node x.
  • Maven reactor build job n+1 starts on slave node y. It determines which modules to build - and more importantly - which not, since those modules' artifacts have been built during job n. Unfortunately those built artifacts have been stored on node x. Node y may have artifacts older than build n, but those from build n are missing
  • Jenkins job does an inconsistent reactor build of mixed version modules.

Question: Is there a possible solution other than having a fixed assignment between branch job and slave node?


Thanks ind advance,

Christian

Christian Flamm

unread,
Oct 21, 2015, 7:13:29 AM10/21/15
to Jenkins Users
bump? :-(

Jeff Vincent

unread,
Oct 21, 2015, 12:55:01 PM10/21/15
to Jenkins Users
So not knowing what your requirements are, it seems that you either need to lock the jobs down to only build on specific slaves or use a central maven repository, making sure your branches (assuming multiple branches building similar artifacts) have unique versions.  Otherwise it seems you are defeating the benefits of Maven's dependency resolution feature.
Reply all
Reply to author
Forward
0 new messages