Jenkins: Control workspace location in perforce
jenkins, perforce
Solution
Open the "Advanced" settings section on the Source Code Management bit of the job configuration, and then look for
Client name format for slaves
it's, by default, ${basename}-${hash}. Delete the hash part and you should be good to go.
Problem
I'm trying to write a Jenkins job for compiling on several platforms. For this, I need the client to be created not in the default location (C:\Jenkins\workspace\MY_JOB) but on a network location (\somecomputer\somewhere.) I tried to unclick "Let Jenkins Create Workspace" and create the workspace myself. However, it fails. I see in the log: ``` "C:\Program Files\Perforce\p4.exe" workspace -o MY_JOB-230942967 ``` I can't figure out what this number is, and why perforce plugin adds it there, and what I may do about it.