summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/sudoers.d/jenkins6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/sudoers.d/jenkins b/etc/sudoers.d/jenkins
index c7d0e1c9..fe6f4389 100644
--- a/etc/sudoers.d/jenkins
+++ b/etc/sudoers.d/jenkins
@@ -1,9 +1,15 @@
jenkins ALL= \
NOPASSWD: /usr/sbin/debootstrap *, \
+ tee /chroots/*, \
+ tee /etc/schroot/chroot.d/*, \
+ chmod +x /chroots/*, \
/usr/sbin/chroot /chroots/*, \
/usr/sbin/chroot /media/*, \
/bin/ls -la /media/*, \
/bin/rm -rf --one-file-system /chroots/*, \
+ /bin/rm -rf --one-file-system /schroots/*, \
+ /bin/mv /chroots/* /schroots/*, \
+ /bin/mv /schroots/* /schroots/*, \
/bin/umount -l /chroots/*, \
/bin/umount -l /media/*, \
/bin/mount -o loop*, \