A Perforce workspace is anchored at it's root folder and Jenkins, unless
otherwise overridden, makes that root equal to the Jenkins workspace root.
you are free to change the mapping from there on, pulling from other
branches, etc.
Jenkins has a Multi-scm plugin that may help:
https://plugins.jenkins.io/multiple-scms


On Thu, Apr 13, 2017 at 2:06 AM, Zongliang <[email protected]> wrote:

> Hi guys,
>
> Is there a way that can sync code from perforce to different directories?
> For example, I want the following mapping:
>
> jenkins view map
> //depot/a/... //workspace/a/...
> //depot/b/...  //another_dir/b
> //depot/c/... //workspace/c/...
>
> The `workspace' is actually /var/lib/jenkins/jobs/<workspace_name>, I
> want `another_dir` to be a different directory, for example, /tmp, is that
> possible with jenkins? Or is that possible with perforce?
>
> Thanks,
>
>
>
>
>
>
>
> --
> 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/4914c0c6.6294.15b65eb50d6.
> Coremail.debug123%40126.com
> <https://groups.google.com/d/msgid/jenkinsci-users/4914c0c6.6294.15b65eb50d6.Coremail.debug123%40126.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Dick Ginga
Build Engineer
[email protected]

-- 
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/CAL3PpaWso70t%2BFVzrBWpxP3eXBWOJJBP2iVRM5jqMB46y2-Y8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to