Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45127

Add force sync option to p4-plugin sync only

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: p4-plugin
    • Labels:
    • Environment:
      Jenkins ver. 2.46.2
      P4 Plugin ver. 1.4.13
    • Similar Issues:

      Description

      Requesting the addition of a force sync flag/option for Sync Only in p4sync.

      There already is an option to force sync a workspace, but currently it does require a full workspace wipe before it does sync. There are certain situations where you do not want to clean workspace before force syncing it - for an example:

      • when you have locally generated logs that you don't want to delete,
      • when you simply don't care about additional files that might have been added locally.

       

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Paul Allen
          Path:
          src/main/java/org/jenkinsci/plugins/p4/populate/SyncOnlyImpl.java
          src/main/resources/org/jenkinsci/plugins/p4/populate/SyncOnlyImpl/config.jelly
          http://jenkins-ci.org/commit/p4-plugin/e3af5747ab7e48645477df9cb801caa65d7c9ec7
          Log:
          Added 'Force' option to 'SyncOnly'.

          To get 'sync -f' set both 'have' and 'force'; for 'sync -p' just set
          'force'.

          JENKINS-45127

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Paul Allen Path: src/main/java/org/jenkinsci/plugins/p4/populate/SyncOnlyImpl.java src/main/resources/org/jenkinsci/plugins/p4/populate/SyncOnlyImpl/config.jelly http://jenkins-ci.org/commit/p4-plugin/e3af5747ab7e48645477df9cb801caa65d7c9ec7 Log: Added 'Force' option to 'SyncOnly'. To get 'sync -f' set both 'have' and 'force'; for 'sync -p' just set 'force'. JENKINS-45127
          Hide
          p4paul Paul Allen added a comment -

          Released 1.7.2

          Show
          p4paul Paul Allen added a comment - Released 1.7.2

            People

            • Assignee:
              p4paul Paul Allen
              Reporter:
              mdelikat Mateusz Delikat
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: