Rolf,
I am doing something very similar to what you are trying to do.  However it 
looks like you are running on Unix and I am running on Windows.
This is what my setting are:
Workspace: SCM_branch-${branch}
Let Jenkins manage workspace is checked.
Let Jenkins manage workspace view is checked.
Client View type is: View Map
In the View Map box I have
   //depot/myApp/win32/${branch}/Source/...  
//SCM_branch-${branch}/Source/...
With these setting I see the workspace is expanged in the logs and I get 
the correct branch.
 
Hope this helps.
 
Mark

On Monday, November 12, 2012 7:43:10 AM UTC-7, RolfB wrote:

> 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