I just use a ws('<some predetermined space>') {
   git url:..... , branch: 'master'
}

and now all the cloned content is within the directory I want.  

On Tuesday, November 29, 2016 at 1:14:03 AM UTC-8, Jean-Luc Pinardon wrote:
>
> Dear all,
>
> I am exploring pipeline features, and I fall into a problem.
> The repository is indeed correctly cloned at job start and the 
> "jenkinsfile" is run.
> But I "discover" that I cannot access the cloned files from within the 
> stages within nodes. Just because, the workspace used at job begin is 
> certainly not the same as the workspace within the nodes.
>
> So, my question is : is there a way to make available the initially cloned 
> files all over the pipeline, or should I clone the repository once more 
> within the first stage and then stash the files I need.
>
> Thanks for your help.
> J.L.P.
>

-- 
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/aca57995-52c2-42f6-94aa-5cee7e434b29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to