summaryrefslogtreecommitdiffstats
path: root/jenkins-scripts
diff options
context:
space:
mode:
authorAndrew Grimberg <agrimberg@linuxfoundation.org>2016-10-21 13:03:59 -0700
committerAndrew Grimberg <agrimberg@linuxfoundation.org>2016-10-21 13:03:59 -0700
commit613ece1b293c5e84a35e4e10712ef7fe03403e09 (patch)
tree5dc68ee78bcfcc1ed8399f6b86242d98f7dee319 /jenkins-scripts
parent7756320bf1035de6f884dfcb3e6a42861e4cce51 (diff)
Grant Jenkins sudo rights on build minions
While it would be nice to not need sudo rights for Jenkins on the build minions, it is unfortunately needed in many cases. Change-Id: Ia7b78008d9f828b222f1f530ec52db340152b29a Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Diffstat (limited to 'jenkins-scripts')
-rwxr-xr-xjenkins-scripts/basic_settings.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/jenkins-scripts/basic_settings.sh b/jenkins-scripts/basic_settings.sh
index 412dfff38..37ca057d0 100755
--- a/jenkins-scripts/basic_settings.sh
+++ b/jenkins-scripts/basic_settings.sh
@@ -35,6 +35,11 @@ jenkins soft nofile 16000
jenkins hard nofile 16000
EOF
+cat <<EOJENKINS_SUDO >/etc/sudoers.d/89-jenkins-user-defaults
+Defaults:jenkins !requiretty
+jenkins ALL = NOPASSWD: ALL
+EOJENKINS_SUDO
+
cat <<EOSSH >> /etc/ssh/ssh_config
Host *
ServerAliveInterval 60