Re: How to dynamically set a local Maven repository per a set of Jobs

2015-04-29 Thread Matt Stave
We have multiple Jenkins jobs using maven with the same userID with /home on a file system shared between slave nodes, so the default ~/.m2/repository led to ... nice speedups, but had the downside of doing The Wrong Thing, and causing errors. So for jobs that call mvn in the middle of a bash

Re: How to dynamically set a local Maven repository per a set of Jobs

2015-04-26 Thread Mark Waite
I'm afraid I can't provide an example. I was only guessing that it is possible, but don't have experience to prove it is possible. When I read https://maven.apache.org/guides/mini/guide-configuring-maven.html , it seems to indicate that the settings.xml file can specify the location of the local

Re: How to dynamically set a local Maven repository per a set of Jobs

2015-04-26 Thread Samith Dassanayake
Hi Mark, I didn't get your point.. Could you please elaborate more. It would be great-full, if you could provide an example. Thanks, Samith On Sunday, April 26, 2015 at 10:36:49 PM UTC+5:30, Mark Waite wrote: > > Can the repository in use by a job be set from the settings.xml file? If > so, t

Re: How to dynamically set a local Maven repository per a set of Jobs

2015-04-26 Thread Mark Waite
Can the repository in use by a job be set from the settings.xml file? If so, then you might use a "managed file" which contains the definition of the repository you want for a specific job. The managed file is then assigned to the job through that same Advanced settings dialog. Mark Waite On Su

Re: How to dynamically set a local Maven repository per a set of Jobs

2015-04-26 Thread Samith Dassanayake
Hi Mark, Yes. By setting "Use private Maven repository" option we can configure whether to use a private maven repository, But the possible values are default, local-to-workspace and local-to-executor. Therefore I cannot specify the local maven repository to use. What I want to do is each job w

Re: How to dynamically set a local Maven repository per a set of Jobs

2015-04-26 Thread Mark Waite
The maven build step includes an advanced button which allows you to configure the repository for that job. Mark Waite On Sun, Apr 26, 2015, 4:13 AM Samith Dassanayake wrote: > Hi all, > I want to set a local maven repository per set of jobs dynamically.(kind > of a job partitioning method) For