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.
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