[JIRA] (JENKINS-59207) READONLY autoclean sync fails on reconcile

6 views
Skip to first unread message

dave@dsak.com (JIRA)

unread,
Sep 3, 2019, 2:17:01 PM9/3/19
to jenkinsc...@googlegroups.com
Dave Miller created an issue
 
Jenkins / Bug JENKINS-59207
READONLY autoclean sync fails on reconcile
Issue Type: Bug Bug
Assignee: Unassigned
Components: p4-plugin
Created: 2019-09-03 18:16
Environment: Jenkins ver. 2.150.2
Plugin ver. 1.10.3
Priority: Major Major
Reporter: Dave Miller

When a READONLY client is synced with the "Auto cleanup and sync" option, the reconcile throws an innocuous "Client of type 'readonly' cannot modify files." error. In 1.10, this error is ignored. In 1.10.3, this error causes the build to fail.

This may be a consequence of a modification to src/main/java/org/jenkinsci/plugins/p4/client/ClientHelper.java in Change 25759, which added an exception when a reconcile fails. Unfortunately, in the above scenario, reconcile shouldn't even be called, so the fact that it fails should be ignored.

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

dwhitfield@perforce.com (JIRA)

unread,
Sep 9, 2019, 1:57:02 PM9/9/19
to jenkinsc...@googlegroups.com
Doug Whitfield commented on Bug JENKINS-59207
 
Re: READONLY autoclean sync fails on reconcile

Issue introduced in 1.10.1, so does seem like 25759 is likely

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

j.f.brown@sbcglobal.net (JIRA)

unread,
Sep 17, 2019, 8:53:01 PM9/17/19
to jenkinsc...@googlegroups.com

The fact the reconcile failure was ignored in an earlier release is a bug - the error should have been surfaced.   IMO, we fixed it the change you noted.  

auto cleanup and sync should run "reconcile -w -f" to make the workspace consistent with the last sync.   

Reply all
Reply to author
Forward
0 new messages