[JIRA] (JENKINS-55985) Matrix params lead to Null directory (//) not allowed in '//depot/dev//...'. after upgrading to P4 plugin 1.9.6

11 views
Skip to first unread message

krizleebear@java.net (JIRA)

unread,
Feb 5, 2019, 5:50:02 PM2/5/19
to jenkinsc...@googlegroups.com
krizleebear created an issue
 
Jenkins / Bug JENKINS-55985
Matrix params lead to Null directory (//) not allowed in '//depot/dev//...'. after upgrading to P4 plugin 1.9.6
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: config.xml
Components: p4-plugin
Created: 2019-02-05 22:49
Environment: Ubuntu 16.04, Jenkins LTS 2.150.2, P4 Plugin 1.9.6, various Perforce Helix server versions
Priority: Blocker Blocker
Reporter: krizleebear

After upgrading P4 plugin from 1.9.4 to the latest version 1.9.6 the following error occurs in Jobs that use multi configuration parameters in client spec:
 

P4: Unable to setup workspace: com.perforce.p4java.exception.RequestException: Error in client specification.
Error detected at line 18.
Null directory (//) not allowed in '//depot/dev//...'.
 
at com.perforce.p4java.impl.mapbased.server.cmd.ResultMapParser.handleErrorStr(ResultMapParser.java:145)
at com.perforce.p4java.impl.mapbased.server.cmd.ResultMapParser.parseCommandResultMapIfIsInfoMessageAsString(ResultMapParser.java:96)
at com.perforce.p4java.impl.mapbased.server.cmd.ClientDelegator.updateClient(ClientDelegator.java:192)
at com.perforce.p4java.impl.mapbased.server.Server.updateClient(Server.java:1506)
at com.perforce.p4java.impl.mapbased.client.Client.update(Client.java:507)
at org.jenkinsci.plugins.p4.client.ClientHelper.updateClient(ClientHelper.java:181)
at org.jenkinsci.plugins.p4.client.ClientHelper.clientLogin(ClientHelper.java:159)
at org.jenkinsci.plugins.p4.client.ClientHelper.<init>(ClientHelper.java:101)
at org.jenkinsci.plugins.p4.tasks.CheckoutTask.initialise(CheckoutTask.java:61)
at org.jenkinsci.plugins.p4.PerforceScm.checkout(PerforceScm.java:477)
at hudson.scm.SCM.checkout(SCM.java:504)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1810)
at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
 
ERROR: P4: Unable to initialise CheckoutTask: hudson.AbortException: Error in client specification.
Error detected at line 18.
Null directory (//) not allowed in '//depot/dev//…'. 

 

 
 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

krizleebear@java.net (JIRA)

unread,
Feb 5, 2019, 5:54:02 PM2/5/19
to jenkinsc...@googlegroups.com
krizleebear updated an issue
Change By: krizleebear
After upgrading P4 plugin from 1.9.4 to the latest version 1.9.6 the following error occurs in Jobs that use multi configuration parameters in client spec:
 
{code:java}

P4: Unable to setup workspace: com.perforce.p4java.exception.RequestException: Error in client specification.
Error detected at line 18.
Null directory (//) not allowed in '//depot/dev//...'.
 
at com.perforce.p4java.impl.mapbased.server.cmd.ResultMapParser.handleErrorStr(ResultMapParser.java:145)
at com.perforce.p4java.impl.mapbased.server.cmd.ResultMapParser.parseCommandResultMapIfIsInfoMessageAsString(ResultMapParser.java:96)
at com.perforce.p4java.impl.mapbased.server.cmd.ClientDelegator.updateClient(ClientDelegator.java:192)
at com.perforce.p4java.impl.mapbased.server.Server.updateClient(Server.java:1506)
at com.perforce.p4java.impl.mapbased.client.Client.update(Client.java:507)
at org.jenkinsci.plugins.p4.client.ClientHelper.updateClient(ClientHelper.java:181)
at org.jenkinsci.plugins.p4.client.ClientHelper.clientLogin(ClientHelper.java:159)
at org.jenkinsci.plugins.p4.client.ClientHelper.<init>(ClientHelper.java:101)
at org.jenkinsci.plugins.p4.tasks.CheckoutTask.initialise(CheckoutTask.java:61)
at org.jenkinsci.plugins.p4.PerforceScm.checkout(PerforceScm.java:477)
at hudson.scm.SCM.checkout(SCM.java:504)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1810)
at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
 
ERROR: P4: Unable to initialise CheckoutTask: hudson.AbortException: Error in client specification.
Error detected at line 18.
Null directory (//) not allowed in '//depot/dev//…'. {code}
 

 
I attached a repro case as Jenkins config.xml file.

The relevant part of the client spec:
{code:java}
<view>//depot/dev/${VARIANT}/... //jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}/...</view> {code}
The parameter ${VARIANT} is defined as matrix job axis but is replaced with 'empty string' by version 1.9.6 of the plugin.
I've also seen there have been changes regarding to multi branch config with this release, maybe this is a hint.
 

kwirth@perforce.com (JIRA)

unread,
Feb 6, 2019, 3:51:04 AM2/6/19
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Feb 6, 2019, 3:57:03 AM2/6/19
to jenkinsc...@googlegroups.com
Karl Wirth commented on Bug JENKINS-55985
 
Re: Matrix params lead to Null directory (//) not allowed in '//depot/dev//...'. after upgrading to P4 plugin 1.9.6

Hi krizleebear. I'll try and repo this and will get back to you with my findings. Note that I've also asked for a screenshot via your support team.

kwirth@perforce.com (JIRA)

unread,
Feb 6, 2019, 6:48:02 AM2/6/19
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Feb 6, 2019, 6:48:02 AM2/6/19
to jenkinsc...@googlegroups.com
 
Re: Matrix params lead to Null directory (//) not allowed in '//depot/dev//...'. after upgrading to P4 plugin 1.9.6

krizleebear. I've been able to repro this so will pass onot the developers.

Reproduction steps.
1 - Put files in two depot paths //depot/test1/... and //depot/test2/...
2 - Install P4-Plugin 1.9.4
3 - Create a new 'Multi-configuration project' job
4 - In the job set two axis':
Slaves = slave 1 and slave 2
VARIANT = test1 test 2
5 - Under Source Code Management choose 'Perforce Software' and use the view:

// Some comments here
//depot/${VARIANT}/... //jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}/...

6 - Set Build triggers to 'Poll SCM' and set Schedule as '* * * * *' Note: This may not be necessary.
7 - Save the job.
8 - Try manually building the job multiple times. The console output shows:

Started by an SCM change
[EnvInject] - Loading node environment variables.
Building on master in workspace /var/lib/jenkins/workspace/Matrix_Freestyle
... p4 client -o jenkins-master-Matrix_Freestyle--1 +
... p4 info +
... p4 info +
... p4 client -o jenkins-master-Matrix_Freestyle--1 +
... p4 client -i +
P4: Unable to setup workspace: com.perforce.p4java.exception.RequestException: Error in client specification.
Error detected at line 18.
Null directory (//) not allowed in '//depot//...'.

	at com.perforce.p4java.impl.mapbased.server.cmd.ResultMapParser.handleErrorStr(ResultMapParser.java:145)
	at com.perforce.p4java.impl.mapbased.server.cmd.ResultMapParser.parseCommandResultMapIfIsInfoMessageAsString(ResultMapParser.java:96)
	at com.perforce.p4java.impl.mapbased.server.cmd.ClientDelegator.updateClient(ClientDelegator.java:192)
	at com.perforce.p4java.impl.mapbased.server.Server.updateClient(Server.java:1506)
	at com.perforce.p4java.impl.mapbased.client.Client.update(Client.java:507)
	at org.jenkinsci.plugins.p4.client.ClientHelper.updateClient(ClientHelper.java:181)
	at org.jenkinsci.plugins.p4.client.ClientHelper.clientLogin(ClientHelper.java:159)
	at org.jenkinsci.plugins.p4.client.ClientHelper.<init>(ClientHelper.java:101)
	at org.jenkinsci.plugins.p4.tasks.CheckoutTask.initialise(CheckoutTask.java:61)
	at org.jenkinsci.plugins.p4.PerforceScm.checkout(PerforceScm.java:477)
	at hudson.scm.SCM.checkout(SCM.java:504)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
	at hudson.model.Run.execute(Run.java:1815)
	at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:429)

ERROR: P4: Unable to initialise CheckoutTask: hudson.AbortException: Error in client specification.
Error detected at line 18.
Null directory (//) not allowed in '//depot//...'.

Finished: FAILURE

kwirth@perforce.com (JIRA)

unread,
Feb 6, 2019, 6:49:01 AM2/6/19
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Feb 7, 2019, 6:33:02 AM2/7/19
to jenkinsc...@googlegroups.com

krizleebear@java.net (JIRA)

unread,
Feb 7, 2019, 5:43:01 PM2/7/19
to jenkinsc...@googlegroups.com
krizleebear commented on Bug JENKINS-55985
 
Re: Matrix params lead to Null directory (//) not allowed in '//depot/dev//...'. after upgrading to P4 plugin 1.9.6

Thanks for reproducing the issue.
In step 2 you mention installing v1.9.4, but in fact, with 1.9.4 this error doesn't appear, but only with 1.9.6.
I'm just pointing out to avoid misunderstandings.

 

kwirth@perforce.com (JIRA)

unread,
Feb 8, 2019, 5:33:02 AM2/8/19
to jenkinsc...@googlegroups.com
Karl Wirth edited a comment on Bug JENKINS-55985
[~krizleebear]. I've been able to repro this so will pass onot the developers.


Reproduction steps.
1 - Put files in two depot paths //depot/test1/... and //depot/test2/...
2 - Install P4-Plugin 1.9. 4 6
3 - Create a new 'Multi-configuration project' job
4 - In the job set two axis':
Slaves = slave 1 and slave 2
VARIANT = test1 test 2
5 - Under Source Code Management choose 'Perforce Software' and use the view:
{code:java}

// Some comments here
//depot/${VARIANT}/... //jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}/...
{code}

6 - Set Build triggers to 'Poll SCM' and set Schedule as '* * * * *' Note: This may not be necessary.
7 - Save the job.
8 - Try manually building the job multiple times.  The console output shows:

{code:java}
Null directory (//) not allowed in '//depot//...'.

Finished: FAILURE
{code}


kwirth@perforce.com (JIRA)

unread,
Feb 8, 2019, 5:33:02 AM2/8/19
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Feb 8, 2019, 5:34:02 AM2/8/19
to jenkinsc...@googlegroups.com
Karl Wirth edited a comment on Bug JENKINS-55985
[~krizleebear]. I've been able to repro this so will pass onot the developers.

Reproduction steps.
1 - Put files in two depot paths //depot/test1/... and //depot/test2/...
2 - Install P4-Plugin 1.9.6
Note - If you install 1.9.4 in step 2 above the same job will work.


pallen@perforce.com (JIRA)

unread,
Feb 14, 2019, 9:31:03 AM2/14/19
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Apr 4, 2019, 9:56:06 AM4/4/19
to jenkinsc...@googlegroups.com

pallen@perforce.com (JIRA)

unread,
Dec 5, 2019, 10:25:02 AM12/5/19
to jenkinsc...@googlegroups.com
Paul Allen updated an issue
Change By: Paul Allen
Priority: Minor Major
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

pallen@perforce.com (JIRA)

unread,
Dec 5, 2019, 10:25:03 AM12/5/19
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Jan 22, 2020, 12:31:02 PM1/22/20
to jenkinsc...@googlegroups.com

eso.Group.in-cloud-opensource@esolutions.de (JIRA)

unread,
Feb 21, 2020, 8:13:02 AM2/21/20
to jenkinsc...@googlegroups.com

Karl Wirth exactly, we still have this issue that prevents us from upgrading. Unfortunately, we also hit the issue JENKINS-55737 that is fixed in 1.9.7. Now we're in the dilemma that we need to upgrade, but can't.

kwirth@perforce.com (JIRA)

unread,
Feb 21, 2020, 9:44:03 AM2/21/20
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Feb 21, 2020, 9:44:03 AM2/21/20
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Feb 21, 2020, 9:48:04 AM2/21/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages