Hi Team,
The below kind client mapping doesn't work in new p4-pluin.
I have upgraded my Jenkins to latest and it's not supported the old perforce plugin, where I tied to adopt new perforce software plugin but it doesn't working anymore with direct mapping of the view.
we have 1000's of job with this kind of mapping, it's not that easy where we can fix.
Mapping straight a folder and a file to client path, doesn't work.
//depot/folder/...
//depot/file
But it always expecting to be and it works.
//depot/folder/... //${P4_CLIENT}/folder/...
//depot/file //${P4_CLIENT}/file
Build console error logs.
16:36:28 P4: Unable to setup workspace: com.perforce.p4java.exception.RequestException: Error in client specification.16:36:28 Error detected at line 18.16:36:28 Wrong number of words for field 'View'.16:36:28 16:36:28 at com.perforce.p4java.impl.mapbased.server.cmd.ResultMapParser.handleErrorStr(ResultMapParser.java:151)16:36:28 at com.perforce.p4java.impl.mapbased.server.cmd.ResultMapParser.parseCommandResultMapIfIsInfoMessageAsString(ResultMapParser.java:102)16:36:28 at com.perforce.p4java.impl.mapbased.server.cmd.ClientDelegator.updateClient(ClientDelegator.java:212)16:36:28 at com.perforce.p4java.impl.mapbased.server.Server.updateClient(Server.java:1784)16:36:28 at com.perforce.p4java.impl.mapbased.client.Client.update(Client.java:524)16:36:28 at org.jenkinsci.plugins.p4.client.ClientHelper.updateClient(ClientHelper.java:191)16:36:28 at org.jenkinsci.plugins.p4.client.ClientHelper.clientLogin(ClientHelper.java:170)16:36:28 at org.jenkinsci.plugins.p4.client.ClientHelper.<init>(ClientHelper.java:104)16:36:28 at org.jenkinsci.plugins.p4.tasks.CheckoutTask.initialise(CheckoutTask.java:64)16:36:28 at org.jenkinsci.plugins.p4.PerforceScm.checkout(PerforceScm.java:578)16:36:28 at hudson.scm.SCM.checkout(SCM.java:540)16:36:28 at hudson.model.AbstractProject.checkout(AbstractProject.java:1217)16:36:28 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:647)16:36:28 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:85)16:36:28 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:519)16:36:28 at hudson.model.Run.execute(Run.java:1897)16:36:28 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)16:36:28 at hudson.model.ResourceController.execute(ResourceController.java:101)16:36:28 at hudson.model.Executor.run(Executor.java:442)16:36:28 16:36:28 ERROR: P4: Unable to initialise CheckoutTask: hudson.AbortException: Error in client specification.16:36:28 Error detected at line 18.16:36:28 Wrong number of words for field 'View'.
Old plugin Jenkins configuration screenshot: