How can I sync code from perforce to directories which is not workspace?

14 views
Skip to first unread message

Zongliang

unread,
Apr 13, 2017, 2:07:41 AM4/13/17
to jenkins...@googlegroups.com
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,


 



 

Richard Ginga

unread,
Apr 13, 2017, 8:09:34 AM4/13/17
to jenkins...@googlegroups.com
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




 

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/4914c0c6.6294.15b65eb50d6.Coremail.debug123%40126.com.
For more options, visit https://groups.google.com/d/optout.



--
Dick Ginga
Build Engineer

Reply all
Reply to author
Forward
0 new messages