You have a Jenkins build server and want to run a script which requires super user rights. But you do not want do make your jenkins user a super user.
With the following you give your jenkins user only sudo rights for a specific script.
In the /etc/sudoers file you can give sudo rights for a specific file to the user with which you run jenkins.