Could we please have two checkboxes on the options for the perforce plugin for a job. One would be 'delete client on job deletion' and the other would be 'delete client root on job deletion'.
The first would delete the client workspace in Jenkins ie 'p4 client -d <ws_name>'
The second would delete the client workspace root directory ie all the checked-out files.
Perhaps the global plugin configuration could have two further checkboxes so that these could default to 'on'?
Having this feature would facilitate admin on our jenkins servers.
I hope this feature is seen as potentially useful to others.
[JENKINS-32454] new option to delete perforce client view & workspace on job deletion
Assignee | New: Paul DeMarco [ paul ] |
Description |
Original:
Could we please have two checkboxes on the options for the perforce plugin for a job. One would be 'delete client on job deletion' and the other would be 'delete client root on job deletion'. The first would delete the client workspace in Jenkins ie 'p4 client -f <ws_name>' The second would delete the client workspace root directory ie all the checked-out files. Perhaps the global plugin configuration could have two further checkboxes so that these could default to 'on'? Having this feature would facilitate admin on our jenkins servers. I hope this feature is seen as potentially useful to others. |
New:
Could we please have two checkboxes on the options for the perforce plugin for a job. One would be 'delete client on job deletion' and the other would be 'delete client root on job deletion'. The first would delete the client workspace in Jenkins ie 'p4 client -d <ws_name>' The second would delete the client workspace root directory ie all the checked-out files. Perhaps the global plugin configuration could have two further checkboxes so that these could default to 'on'? Having this feature would facilitate admin on our jenkins servers. I hope this feature is seen as potentially useful to others. |
Assignee | Original: Paul DeMarco [ paul ] | New: Paul Allen [ p4paul ] |
Environment |
Original:
O/S: RedHat Enterprise Linux Server 6.4 (Santiago) JRE: Java(TM) SE Runtime Environment 1.8.0_60-b27 p4-plugin: 1.3.6-SNAPSHOT (private-1843330f-pallen) running jenkins directly |
New:
O/S: RedHat Enterprise Linux Server 6.4 (Santiago) JRE: Java(TM) SE Runtime Environment 1.8.0_60-b27 p4-plugin: 1.3.5 running jenkins directly |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
The two checkboxes may need to be global (under the Perforce configuration page not the Job page).
It would seem logical to have a common behaviour for workspace cleanup, rather than setting at the time you create the Jenkins Job?
Still I would need to find out how to hook into the Jenkins Job deletion event.