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 will have their own workspace and set of jobs 
will share a single local maven repo

Example
*JOB*        *WORKSPACE*                   *LOCAL MAVEN REPO*
job1        JENKINS_HOME/job1       /home/jenkins/*local_repo_1*
job2        JENKINS_HOME/job2       /home/jenkins/*local_repo_1*
job3        JENKINS_HOME/job3       /home/jenkins/*local_repo_1*

job4         JENKINS_HOME/job4       /home/jenkins/*local_repo_2*
job5         JENKINS_HOME/job5       /home/jenkins/*local_repo_2*

Here job1,job2 and job3 will have their own workspace but share the local 
maven repository in " /home/jenkins/*local_repo_1*". But for job4 and job5 
maven repository will be " /home/jenkins/*local_repo_2*". How can I 
configure jenkins to achieve that?

Thanks,
Samith

On Sunday, April 26, 2015 at 4:21:30 PM UTC+5:30, Mark Waite wrote:
>
> 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 <hisa...@gmail.com 
> <javascript:>> wrote:
>
>> Hi all,
>> I want to set a local maven repository per set of jobs dynamically.(kind 
>> of a job partitioning method) For an example
>> job1, job2, job3  --> use /home/jenkins/dir1
>> job4, job5,  --> use /home/jenkins/dir2
>> job7  --> use /home/jenkins/dir3
>> etc..
>>
>> Is there a way to define local maven repository location in the 
>> config.xml such that I can define which local maven repository to use, 
>> during the job creation per particular job?
>>
>> Thanks,
>> Samith
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/38b4d42b-298b-41cd-bfc2-f28a2b8c32c3%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/38b4d42b-298b-41cd-bfc2-f28a2b8c32c3%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/67b464fb-c5fc-4f2c-a28c-5fd3726cab0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to