Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save halilertekin/3ee1f1d2484a67b2b2fbd75a4ed35a7a to your computer and use it in GitHub Desktop.
Save halilertekin/3ee1f1d2484a67b2b2fbd75a4ed35a7a to your computer and use it in GitHub Desktop.

Revisions

  1. @imranity imranity created this gist Feb 13, 2015.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    Running shell scripts that have contain sudo commands in them from jenkins might not run as expected. To fix this, follow along
    Simple steps:
    1. On ubuntu based systems, run " $ sudo visudo "
    2. this will open /etc/sudoers file.
    3. If your jenkins user is already in that file, then modify to look like this:

    jenkins ALL=(ALL) NOPASSWD: ALL
    4. save the file by doing Ctrl+O (dont save in tmp file. save in /etc/sudoers, confirm overwrite)
    5. Exit by doing Ctrl+X
    6. Relaunch your jenkins job
    7. you shouldnt see that error message again :)