• Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • p4-plugin
    • Jenkins ver. 2.46.2
      P4 Plugin ver. 1.4.13

      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.

       

          [JENKINS-45127] Add force sync option to p4-plugin sync only

          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

          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

          Paul Allen added a comment -

          Released 1.7.2

          Paul Allen added a comment - Released 1.7.2

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

              Created:
              Updated:
              Resolved: