[JIRA] (JENKINS-52590) p4-plugin sets client root to null

5 views
Skip to first unread message

barnish@gmail.com (JIRA)

unread,
Jul 16, 2018, 2:22:02 PM7/16/18
to jenkinsc...@googlegroups.com
Andrew Barnish created an issue
 
Jenkins / Bug JENKINS-52590
p4-plugin sets client root to null
Issue Type: Bug Bug
Assignee: Unassigned
Components: p4-plugin
Created: 2018-07-16 18:21
Environment: Jenkins 2.121.1
p4-plugin 1.8.10
Priority: Minor Minor
Reporter: Andrew Barnish

We are using p4-plugin in freestyle jobs and the "Template" workspace behavior

Regularly (but not always) we are seeing client root is set to "null" rather than being updated to the correct value. I have not been able to work out why some jobs have this problem but others do not. It does not seem to affect the syncing of the jobs, but it is confusing for users.

It seems similar to an old issue that we had (possibly JENKINS-26589 )

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

barnish@gmail.com (JIRA)

unread,
Jul 17, 2018, 12:12:02 PM7/17/18
to jenkinsc...@googlegroups.com
Andrew Barnish updated an issue
Change By: Andrew Barnish
We are using p4-plugin in freestyle jobs and the "Template" workspace behavior

Regularly (but not always) we are seeing client root is set to "null" rather than being updated to the correct value. I have not been able to work out why some jobs have this problem but others do not. It does not seem to affect the syncing of the jobs, but it is confusing for users.

It seems similar to an old issue that we had (possibly JENKINS-26589 )


We are also seeing the following error sometimes:
ERROR: P4 Task: failed: com.perforce.p4java.exception.P4JavaException: com.perforce.p4java.exception.P4JavaException: hudson.AbortException: P4JAVA: Error(s):
Path '/null/...' is not under client's root 'null'.

kwirth@perforce.com (JIRA)

unread,
Jul 18, 2018, 4:47:02 AM7/18/18
to jenkinsc...@googlegroups.com
Karl Wirth updated an issue
Change By: Karl Wirth
Labels: P4_SUPPORT

kwirth@perforce.com (JIRA)

unread,
Jul 19, 2018, 5:18:01 AM7/19/18
to jenkinsc...@googlegroups.com
Karl Wirth updated an issue
Change By: Karl Wirth
Labels: P4_SUPPORT P4_VERIFY

kwirth@perforce.com (JIRA)

unread,
Jul 19, 2018, 5:18:01 AM7/19/18
to jenkinsc...@googlegroups.com
Karl Wirth updated an issue
Change By: Karl Wirth
Labels: P4_VERIFY P4_Verify

kwirth@perforce.com (JIRA)

unread,
Jul 19, 2018, 5:18:02 AM7/19/18
to jenkinsc...@googlegroups.com
Karl Wirth updated an issue
Change By: Karl Wirth
Labels: P4_Verify P4_SUPPORT

daniel@resolutiongames.com (JIRA)

unread,
Aug 15, 2018, 7:55:02 AM8/15/18
to jenkinsc...@googlegroups.com
Daniel Hagström commented on Bug JENKINS-52590
 
Re: p4-plugin sets client root to null

I can confirm this, but our setup is slightly different. We're using multibranch pipelines with Jenkinsfiles scanned over streams. I see this generally the first sync per pipeline, e.g. when creating the client. I've added a retry around the checkout step that "usually" takes care of the null ref (the second time generally works), but it not always. It looks like a timing issue to me, since it consistently (with an exception once or twice a month) works after that.

kwirth@perforce.com (JIRA)

unread,
Sep 26, 2018, 6:40:02 AM9/26/18
to jenkinsc...@googlegroups.com

Have contacted Andrew directly via the support channel.

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

kwirth@perforce.com (JIRA)

unread,
Sep 26, 2018, 7:00:02 AM9/26/18
to jenkinsc...@googlegroups.com
Karl Wirth assigned an issue to Karl Wirth
 
Change By: Karl Wirth
Assignee: Karl Wirth

kwirth@perforce.com (JIRA)

unread,
Dec 12, 2018, 9:40:03 AM12/12/18
to jenkinsc...@googlegroups.com
 
Re: p4-plugin sets client root to null

Thanks to Andrew we were able to find the cause. Andrew spotted that the null client times matched the time the poll was run.

 

Reproduction steps:

 

1 - Create a polled Freestyle job

2 - Build Job once.

3 - Wait till next poll (or use Poll Now plugin).

4 - Look at the polling log for the client name used in the polling. Run 'p4 client -o' on that client. The 'Root:' is 'null'.

 

 

kwirth@perforce.com (JIRA)

unread,
Dec 12, 2018, 9:40:03 AM12/12/18
to jenkinsc...@googlegroups.com
Karl Wirth updated an issue
Change By: Karl Wirth
Labels: P4_SUPPORT P4_VERIFY

kwirth@perforce.com (JIRA)

unread,
Dec 12, 2018, 9:40:04 AM12/12/18
to jenkinsc...@googlegroups.com
Karl Wirth updated an issue
Change By: Karl Wirth
Environment: Jenkins 2. 121 138 . 1 3
p4-plugin 1.
8 9 . 10 5

kwirth@perforce.com (JIRA)

unread,
Dec 17, 2018, 6:06:01 AM12/17/18
to jenkinsc...@googlegroups.com
Karl Wirth assigned an issue to Paul Allen
Change By: Karl Wirth
Assignee: Karl Wirth Paul Allen

kwirth@perforce.com (JIRA)

unread,
Dec 17, 2018, 6:09:01 AM12/17/18
to jenkinsc...@googlegroups.com
Karl Wirth assigned an issue to paul allen
Change By: Karl Wirth
Assignee: Paul Allen paul allen

kwirth@perforce.com (JIRA)

unread,
Dec 17, 2018, 6:09:03 AM12/17/18
to jenkinsc...@googlegroups.com
Karl Wirth assigned an issue to Paul Allen
Change By: Karl Wirth
Assignee: paul allen Paul Allen

pallen@perforce.com (JIRA)

unread,
Dec 19, 2018, 10:46:02 AM12/19/18
to jenkinsc...@googlegroups.com
Paul Allen started work on Bug JENKINS-52590
 
Change By: Paul Allen
Status: Open In Progress

pallen@perforce.com (JIRA)

unread,
Dec 19, 2018, 10:48:02 AM12/19/18
to jenkinsc...@googlegroups.com

pallen@perforce.com (JIRA)

unread,
Dec 19, 2018, 10:48:03 AM12/19/18
to jenkinsc...@googlegroups.com
 

Ready for release.

Change By: Paul Allen
Status: In Review Resolved
Resolution: Fixed

msmeeth@perforce.com (JIRA)

unread,
Jan 9, 2019, 5:34:02 AM1/9/19
to jenkinsc...@googlegroups.com
Change By: Matthew Smeeth
Status: Resolved Fixed but Unreleased

pallen@perforce.com (JIRA)

unread,
Jan 16, 2019, 9:50:02 AM1/16/19
to jenkinsc...@googlegroups.com
 

Released in 1.9.6

Change By: Paul Allen
Status: Fixed but Unreleased Closed

kwirth@perforce.com (JIRA)

unread,
Sep 10, 2019, 11:04:04 AM9/10/19
to jenkinsc...@googlegroups.com
Karl Wirth edited a comment on Bug JENKINS-52590
 
Re: p4-plugin sets client root to null
JENKINS-59300 - Same bug but new one is for template workspaces.
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

kwirth@perforce.com (JIRA)

unread,
Sep 10, 2019, 11:04:04 AM9/10/19
to jenkinsc...@googlegroups.com

Same bug but new one is for template workspaces.

Reply all
Reply to author
Forward
0 new messages