Hello,
in our company we use FreeStyleBuilds (no pipelines) to run incremental builds of our projects.
This is achieved by setting p4 plugin to "SyncOnly" and "Populate have list".
Once per day (or on demand) we would like to run clean build, controlled by boolean build parameter P4_CLEANWORKSPACE. When this checkbox is on, workspace should be deleted and recreated prior to running build.
I have tried to use "delete workspace" plugin, but then p4 plugin's have list was not updated and full (force) sync was not performed.
I have implemented support for this feature and created pull request. Before sync phase, when there is P4_CLEANWORKSPACE environment variable set, build workspace is deleted and force sync is performed.
Example implementation is on my branch:
https://github.com/nephre/p4-plugin/tree/force_sync_when_p4cleanworkspace
Is it possible to merge such change into master branch?
If so, this is PR: https://github.com/jenkinsci/p4-plugin/pull/133
Kind regards,
Daniel Jeznach