Ho bisogno di eseguire uno script di shell in Jenkins come root invece che come utente predefinito. Cosa devo cambiare?Come eseguire uno script come root in Jenkins?
Il mio file sudoers è come questo:
# User privilege specification
root ALL=(ALL) ALL
igx ALL=(ALL) ALL
%wheel ALL=(ALL) ALL
# Allow members of group sudo to execute any command
# (Note that later entries override this, so you might need to move
%sudo ALL=(ALL) ALL
#
#includedir /etc/sudoers.d
# Members of the admin group may gain root privileges
%admin ALL=(ALL) NOPASSWD:ALL
root ALL=(ALL) ALL
jenkins ALL=NOPASSWD: /var/lib/jenkins/workspace/ing00112/trunk/source/
jenkins ALL=(ALL) NOPASSWD:ALL
#Defaults:jenkins !requiretty
possibile duplicato di [come eseguire Jenkins come Super utente?] (Http://stackoverflow.com/questions/ 11841140/how-to-run-jenkins-as-super-user) –