[JIRA] (JENKINS-59112) [P4 Plugin] Support Switching Between Commit and Edge Servers on Sync Tasks

5 views
Skip to first unread message

kroutley@ea.com (JIRA)

unread,
Aug 27, 2019, 8:23:02 PM8/27/19
to jenkinsc...@googlegroups.com
Kurt Routley created an issue
 
Jenkins / Improvement JENKINS-59112
[P4 Plugin] Support Switching Between Commit and Edge Servers on Sync Tasks
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: p4-plugin
Created: 2019-08-28 00:22
Environment: Jenkins 2.176.2
P4 Plugin 1.10.3
P4D 2017.2
Priority: Minor Minor
Reporter: Kurt Routley

Notes here from our discussion at Jenkins World.

TL;DR: Would be nice to support switching from commit to edge server cleanly for sync only operations.

We recently set up an edge server for our commit server. Ideally we would like to be able to update the P4Port value for the same credential used for our Pipeline jobs so that we don't need to configure all of them to point to a new credential. The jobs would be using the same workspace. There is an issue though that if we only update the P4Port value from the commit to the edge server, then the workspace is still tied to the commit server and the sync will fail. It would be nice if the P4 Plugin could handle the switch from the commit server to edge server if the P4Port value on the credential has been changed.

We had discussed about using p4 reload to do this, however, this requires super permissions for the account, which our account does not have.

The other possible solution we had mentioned was to:

  • Record the changelist the workspace is currently sync'd to on the commit server
  • Delete the client from the commit server
  • Recreate the client on the edge server
  • Perform a p4 flush / p4 sync -k to the changelist value
  • Perform a reconcile to the new changelist value being sync'd to
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

kwirth@perforce.com (JIRA)

unread,
Aug 28, 2019, 3:25:01 AM8/28/19
to jenkinsc...@googlegroups.com

kroutley@ea.com (JIRA)

unread,
Aug 30, 2019, 12:50:01 PM8/30/19
to jenkinsc...@googlegroups.com
Kurt Routley updated an issue
Change By: Kurt Routley
Notes here from our discussion at Jenkins World.

TL;DR: Would be nice to support switching from commit to edge server cleanly for sync only operations.

We recently set up an edge server for our commit server. Ideally we would like to be able to update the P4Port value for the same credential used for our Pipeline jobs so that we don't need to configure all of them to point to a new credential. The jobs would be using the same workspace. There is an issue though that if we only update the P4Port value from the commit to the edge server, then the workspace is still tied to the commit server and the sync will fail. It would be nice if the P4 Plugin could handle the switch from the commit server to edge server if the P4Port value on the credential has been changed.

We had discussed about using p4 reload to do this, however, this requires super permissions for the account (if the -f force flag is used) , which our account does not have.


The other possible solution we had mentioned was to:
* Record the changelist the workspace is currently sync'd to on the commit server
* Delete the client from the commit server
* Recreate the client on the edge server
* Perform a p4 flush / p4 sync -k to the changelist value
* Perform a reconcile to the new changelist value being sync'd to
Reply all
Reply to author
Forward
0 new messages