summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/live-build.sh2
-rw-r--r--etc/sudoers.d/jenkins1
2 files changed, 2 insertions, 1 deletions
diff --git a/bin/live-build.sh b/bin/live-build.sh
index 80c75dd9..8b1129c8 100755
--- a/bin/live-build.sh
+++ b/bin/live-build.sh
@@ -30,7 +30,7 @@ case "$3" in
esac
sudo lb build
mkdir -p /srv/live-build/results
-cp -v live-image-amd64.hybrid.iso /srv/live-build/results/$1_$2_$3_live_amd64.iso
+sudo cp -v live-image-amd64.hybrid.iso /srv/live-build/results/$1_$2_$3_live_amd64.iso
cleanup_all
trap - INT TERM EXIT
diff --git a/etc/sudoers.d/jenkins b/etc/sudoers.d/jenkins
index c1c86ec7..11713c2e 100644
--- a/etc/sudoers.d/jenkins
+++ b/etc/sudoers.d/jenkins
@@ -10,6 +10,7 @@ jenkins ALL= \
/bin/rm -rf --one-file-system /chroots/*, \
/bin/rm -rf --one-file-system /schroots/*, \
/bin/rm -rf --one-file-system /srv/live-build/*, \
+ /bin/cp -v *.iso /srv/live-build/results/*, \
/bin/mv /chroots/* /schroots/*, \
/bin/mv /schroots/* /schroots/*, \
/bin/umount -l /chroots/*, \