Is it possible to "clean workspace as root"?

7 views
Skip to first unread message

alfred.perlstein

unread,
May 5, 2015, 12:09:32 AM5/5/15
to jenkins...@googlegroups.com
Our build process needs to create some files as root.

We are using sudo for this.

The problem we are having is that the jenkins system doesn't appear allow you to make your own "clean workspace" hook.

Because of this cleaning the workspace is run as "jenkins" and the "rm -rf" fails due to bad permissions.

Is there a way to override the "rm -rf" for clean workspace to use "sudo rm -rf" please?

thank you,
-Alfred 
Reply all
Reply to author
Forward
0 new messages