summaryrefslogtreecommitdiffstats
path: root/hosts/profitbricks-build9-amd64/etc/sudoers.d/jenkins
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/profitbricks-build9-amd64/etc/sudoers.d/jenkins')
-rw-r--r--hosts/profitbricks-build9-amd64/etc/sudoers.d/jenkins12
1 files changed, 12 insertions, 0 deletions
diff --git a/hosts/profitbricks-build9-amd64/etc/sudoers.d/jenkins b/hosts/profitbricks-build9-amd64/etc/sudoers.d/jenkins
new file mode 100644
index 00000000..a2d8890b
--- /dev/null
+++ b/hosts/profitbricks-build9-amd64/etc/sudoers.d/jenkins
@@ -0,0 +1,12 @@
+jenkins ALL= \
+ NOPASSWD: /usr/sbin/debootstrap *, \
+ /usr/sbin/chroot /chroots/*, \
+ /bin/rm -rf --one-file-system /chroots/*, \
+ /bin/umount -l /chroots/*, \
+ /usr/bin/killall timeout, \
+ /usr/sbin/slay 1111, \
+ /usr/sbin/slay 2222, \
+ /usr/sbin/slay jenkins
+
+# keep these environment variables
+Defaults env_keep += "http_proxy", env_reset