3 # make sure we don't require tty for sudo operations
4 cat <<EOF >/etc/sudoers.d/89-jenkins-user-defaults
5 Defaults:jenkins !requiretty
6 jenkins ALL = NOPASSWD: ALL
9 # make sure jenkins is part of the docker only if jenkins has already been
12 if grep -q jenkins /etc/passwd
14 /usr/sbin/usermod -a -G docker jenkins
17 # vim: sw=2 ts=2 sts=2 et :