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

2019-08-30 Thread krout...@ea.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Kurt Routley updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-59112  
 
 
  [P4 Plugin] Support Switching Between Commit and Edge Servers on Sync Tasks   
 

  
 
 
 
 

 
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  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira 

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

2019-08-28 Thread kwi...@perforce.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Karl Wirth updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-59112  
 
 
  [P4 Plugin] Support Switching Between Commit and Edge Servers on Sync Tasks   
 

  
 
 
 
 

 
Change By: 
 Karl Wirth  
 
 
Labels: 
 P4_VERIFY  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.201537.1566951731000.1615.1566977100155%40Atlassian.JIRA.


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

2019-08-27 Thread krout...@ea.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Kurt Routley created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-59112  
 
 
  [P4 Plugin] Support Switching Between Commit and Edge Servers on Sync Tasks   
 

  
 
 
 
 

 
Issue Type: 
  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  
 
 
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