(auto-response)
Just using :
[job] >> build >> Advanced >> Use custom workspace... with something like :
/var/lib/jenkins/workspace/github-projects/${POM_ARTIFACTID}
It works great !
Le mardi 3 février 2015 16:24:54 UTC+1, Sylvain Richet a écrit :
>
> Hi Guys,
>
> First time i need this (temporarily) :
> having 2 Jenkins jobs mapping the same project (say: "myproject"), but on
> 2 differents GIT repositories :
>
> - "myproject" on Bitbucket
> - "myproject" on Github
>
> My projects are all "mavenized", with inner modules and relative paths :
>
>> [...]
>> <modules>
>> <module>../module1</module>
>> <module>../module2</module>
>> </modules>
>> [...]
>>
>
> By default, checkout/fetch/clone products are written in :
> /var/lib/jenkins/workspace
> But :
> 1) with the same project name, I have to rename one of the 2 jobs. So: ~OK
> 2) the same relative paths in both projects
>
> So, i tried to trick around :
> [job] >> Source Code Management >> Additional Behaviours >> Check out to
> a sub-directory >> Local subdirectory for repo
> - "myproject" on Bitbucket ==> bitbucket-projects
> - "myproject" on Github ==> github-projects
>
> But it is relative to "workspace root", which is :
> /var/lib/jenkins/workspace/myproject
> ... and not : /var/lib/jenkins/workspace !
>
> *I wanted to have both:*
> /var/lib/jenkins/workspace/bitbucket-projects/myproject
> /var/lib/jenkins/workspace/github-projects/myproject
>
> *... but i get :*
> /var/lib/jenkins/workspace/myproject/bitbucket-projects/....
> /var/lib/jenkins/workspace/myproject/github-projects/....
>
> *So it does not fit !*
>
> # The real question is finally :
> *HOW TO CHANGE/CONFIGURE THE OVERALL JENKINS WORKSPACE (default :
> /var/lib/jenkins/workspace) AT JOB LEVEL ?*
>
>
> Any idea ?
> Thx a lot in advance
>
> Regards
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/4d971eb7-994f-4cee-bdb2-4be0e38dde1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.