Adding a client workspace spec. like jenkins-$JOB_NAME will cause a P4 error:
xxx $ "C:\Program Files\Perforce\p4.exe" -s client -i Caught exception communicating with perforce. Slashes (/) not allowed in xxxxx
when used in a matrix project. Something like below:
String nameFixer(AbstractProject project) { String name = project.getFullName(); return name.replace('/','-').replace('=','-').replace(',','-'); }
when substituting "JOB_NAME" is a possible fix to create valid workspace name.
[JENKINS-9893] $JOB_NAME doesn't work with matrix projects due to illegal character '/' in workspace name
Component/s | New: perforce [ 15506 ] | |
Assignee | New: Rob Petti [ rpetti ] | |
Labels | New: matrix perforce |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 140079 ] | New: JNJira + In-Review [ 188834 ] |
Component/s | New: p4-plugin [ 19224 ] | |
Component/s | Original: perforce-plugin [ 15506 ] |