I wish to have a parameterized Jenkins build which builds projects from a 
Perforce database based on a parameterized location within the Perforce 
database.   Can anyone advise how to achieve this with the Jenkins Perforce 
plug-in?

To this end I attempted setting up a Matrix build with the "Workspace" 
field in "Project Details" of the "Perforce" "Source Code Management" to 
either "jenkins_branch_${ProjectBranchName}" or 
"jenkins_branch_$ProjectBranchName".   This is not expended in this field, 
as the console output includes:
/usr/local/bin/p4 -s changes -s submitted 
//jenkins_branch_${ProjectBranchName}/...@62994,@63043
Sync'ing workspace to changelist 63043.
[MonitorP4ProjectlBranch] $ /usr/local/bin/p4 -s sync 
//jenkins_branch_${ProjectBranchName}/...@63043
Caught exception communicating with perforce. Errors encountered while 
syncing: error: //jenkins_branch_${ProjectBranchName}/...@63043 - no such 
file(s).

thus I suspect I am using the wrong approaching.

Thanks,
Rolf

Reply via email to