I have a build script which executes apt-get and therefore requires root privileges. What is the best way to run this script in Hudson?
Currently the only solution I have found that works is to add an entry to the sudoers file for the user hudson like so:
hudson ALL=(ALL) NOPASSWD:ALL
However, although my build script now runs without error in Hudson, I am not entirely comfortable with this solution. Is there a better way?