I upgraded to 1.9.4, there is a bug. Now I am roll-back to 1.9.3. It is OK.
I have a pipeline job,
configured like below.
workspace name is jenkins-${NODE_NAME}${JOB_NAME}${EXECUTOR_NUMBER} originally.
This capture is from 1.9.3
But in case of 1.9.4,
first build is normal, but all builds from second have a problem.
log is
com.perforce.p4java.exception.RequestException: //jenkinsTemp-7a493879-8d2c-4b5b-a1b4-d7f4dfd86e81/Jenkinsfile - file(s) not in client view.
at com.perforce.p4java.impl.mapbased.server.cmd.ResultMapParser.handleWarningStr(ResultMapParser.java:164)
at com.perforce.p4java.impl.mapbased.rpc.OneShotServerImpl.execStreamCmd(OneShotServerImpl.java:545)
at com.perforce.p4java.impl.mapbased.rpc.OneShotServerImpl.execStreamCmd(OneShotServerImpl.java:461)
at com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator.execStreamCmd(BaseDelegator.java:163)
at com.perforce.p4java.impl.mapbased.server.cmd.PrintDelegator.getFileContents(PrintDelegator.java:56)
at com.perforce.p4java.impl.mapbased.server.Server.getFileContents(Server.java:2288)
at org.jenkinsci.plugins.p4.scm.P4SCMFile.content(P4SCMFile.java:145)
Caused: java.io.IOException
at org.jenkinsci.plugins.p4.scm.P4SCMFile.content(P4SCMFile.java:147)
at jenkins.scm.api.SCMFile.contentAsString(SCMFile.java:338)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:110)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:303)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
and configure page shows
workspace name and view mappings is different name like
workspace name : jenkinsTemp-ebdxxxx
view mappings : //jenkinsTemp-abcxxxx
The 1.9.4 release did include changes to the way the Jenkinsfile is mapped in the view:
https://swarm.workshop.perforce.com/changes/24829
Have you tried deleting and re-adding the Pipeline Job or using the original workspace name:
If you have Perforce Support, please raise a support case and include this JIRA issue in the details.
Kind regards,
Paul