Setting up Template Workspace with P4 Plugin

96 views
Skip to first unread message

Nick Lee

unread,
May 26, 2015, 3:37:01 PM5/26/15
to jenkins...@googlegroups.com
I'm trying to set up a build project using the P4 plugin in Jenkins. Specifically, I'm using the following Source Code Management settings: 
  • Workspace Behavior: "Template"
  • Template workspace: "client-jenkins-template"
  • Workspace Name Format: "client-jenkins-${NODE_NAME}" 
Essentially, I want build project to create a new Perforce workspace on each node based off the "client-jenkins-template" workspace. 

When the project runs, it looks like it creates a new workspace on the slave node, as you would expect. However, the Workspace Root in the new workspace is set to "null", which means that any subsequent sync to head revision fails horribly. 

Why is the Workspace Root getting set to "null" in the new workspace? I've verified that the original template workspace has the Workspace Root properly set. Is this something that the P4 plugin cannot copy over properly? If so, how do I set it the Workspace Root to the correct location?
Reply all
Reply to author
Forward
0 new messages