Loading bin/live-build.shdeleted 100755 → 0 +0 −47 Original line number Diff line number Diff line #!/bin/bash # Copyright 2014-2015 Holger Levsen <holger@layer-acht.org> # released under the GPLv=2 DEBUG=false . /srv/jenkins/bin/common-functions.sh common_init "$@" cleanup_all() { sudo rm -rf --one-file-system $TMPDIR } TMPDIR=$(mktemp --tmpdir=/srv/live-build -d -t live-build-XXXXXXXX) cd $TMPDIR trap cleanup_all INT TERM EXIT # $1 is used for the hostname and username # $2 is used for the suite # $3 is choosing the flavor lb config --distribution $2 --bootappend-live "boot=live config hostname=$1 username=$1" cp -rv /srv/jenkins/live/config . case "$3" in standalone) echo education-standalone >> config/package-lists/live.list.chroot echo education-desktop-xfce >> config/package-lists/live.list.chroot echo education-laptop >> config/package-lists/live.list.chroot ;; workstation) echo education-workstation >> config/package-lists/live.list.chroot echo education-desktop-xfce >> config/package-lists/live.list.chroot echo education-laptop >> config/package-lists/live.list.chroot ;; gnome) echo task-gnome-desktop >> config/package-lists/live.list.chroot ;; xfce) echo task-xfce-desktop >> config/package-lists/live.list.chroot ;; *) ;; esac sudo lb build mkdir -p /srv/live-build/results sudo cp -v live-image-amd64.hybrid.iso /srv/live-build/results/$1_$2_$3_live_amd64.iso echo echo "$(date -u) - live image created:" ls -lh /srv/live-build/results/$1_$2_$3_live_amd64.iso echo cleanup_all trap - INT TERM EXIT bin/maintenance.sh +0 −1 Original line number Diff line number Diff line Loading @@ -185,7 +185,6 @@ build_jenkins_job_health_page() { FILTER[23]="g-i-installation_debian-edu_jessie" FILTER[24]="g-i-installation_debian-edu_stretch" FILTER[25]="debian-archive-keyring" FILTER[26]="live:d-i_build" numfilters=${#FILTER[@]} let numfilters-=1 # that's what you get when you start counting from 0 write_page "<!DOCTYPE html><html lang=\"en\"><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">" Loading hosts/common/etc/schroot/default/fstab +0 −1 Original line number Diff line number Diff line Loading @@ -25,4 +25,3 @@ /srv/reproducible-results /srv/reproducible-results none rw,bind 0 0 /srv/d-i /srv/d-i none rw,bind 0 0 /srv/jenkins /srv/jenkins none rw,bind 0 0 /srv/live-build /srv/live-build none rw,bind 0 0 hosts/common/etc/sudoers.d/jenkins +0 −2 Original line number Diff line number Diff line Loading @@ -15,11 +15,9 @@ jenkins ALL= \ /bin/ls -la /media/*, \ /bin/rm -rf --one-file-system /chroots/*, \ /bin/rm -rf --one-file-system /schroots/*, \ /bin/rm -rf --one-file-system /srv/live-build/*, \ /bin/rm -rf --one-file-system /srv/workspace/pbuilder/*, \ /bin/rm -rf --one-file-system /tmp/*, \ /bin/rm -rv --one-file-system /tmp/*, \ /bin/cp -v *.iso /srv/live-build/results/*, \ /bin/mv /chroots/* /schroots/*, \ /bin/mv /schroots/* /schroots/*, \ /bin/umount -l /chroots/*, \ Loading hosts/jenkins-test-vm/etc/sudoers.d/jenkins +0 −2 Original line number Diff line number Diff line Loading @@ -13,9 +13,7 @@ jenkins ALL= \ /bin/ls -la /media/*, \ /bin/rm -rf --one-file-system /chroots/*, \ /bin/rm -rf --one-file-system /schroots/*, \ /bin/rm -rf --one-file-system /srv/live-build/*, \ /bin/rm -rf --one-file-system /srv/workspace/pbuilder/*, \ /bin/cp -v *.iso /srv/live-build/results/*, \ /bin/mv /chroots/* /schroots/*, \ /bin/mv /schroots/* /schroots/*, \ /bin/umount -l /chroots/*, \ Loading Loading
bin/live-build.shdeleted 100755 → 0 +0 −47 Original line number Diff line number Diff line #!/bin/bash # Copyright 2014-2015 Holger Levsen <holger@layer-acht.org> # released under the GPLv=2 DEBUG=false . /srv/jenkins/bin/common-functions.sh common_init "$@" cleanup_all() { sudo rm -rf --one-file-system $TMPDIR } TMPDIR=$(mktemp --tmpdir=/srv/live-build -d -t live-build-XXXXXXXX) cd $TMPDIR trap cleanup_all INT TERM EXIT # $1 is used for the hostname and username # $2 is used for the suite # $3 is choosing the flavor lb config --distribution $2 --bootappend-live "boot=live config hostname=$1 username=$1" cp -rv /srv/jenkins/live/config . case "$3" in standalone) echo education-standalone >> config/package-lists/live.list.chroot echo education-desktop-xfce >> config/package-lists/live.list.chroot echo education-laptop >> config/package-lists/live.list.chroot ;; workstation) echo education-workstation >> config/package-lists/live.list.chroot echo education-desktop-xfce >> config/package-lists/live.list.chroot echo education-laptop >> config/package-lists/live.list.chroot ;; gnome) echo task-gnome-desktop >> config/package-lists/live.list.chroot ;; xfce) echo task-xfce-desktop >> config/package-lists/live.list.chroot ;; *) ;; esac sudo lb build mkdir -p /srv/live-build/results sudo cp -v live-image-amd64.hybrid.iso /srv/live-build/results/$1_$2_$3_live_amd64.iso echo echo "$(date -u) - live image created:" ls -lh /srv/live-build/results/$1_$2_$3_live_amd64.iso echo cleanup_all trap - INT TERM EXIT
bin/maintenance.sh +0 −1 Original line number Diff line number Diff line Loading @@ -185,7 +185,6 @@ build_jenkins_job_health_page() { FILTER[23]="g-i-installation_debian-edu_jessie" FILTER[24]="g-i-installation_debian-edu_stretch" FILTER[25]="debian-archive-keyring" FILTER[26]="live:d-i_build" numfilters=${#FILTER[@]} let numfilters-=1 # that's what you get when you start counting from 0 write_page "<!DOCTYPE html><html lang=\"en\"><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">" Loading
hosts/common/etc/schroot/default/fstab +0 −1 Original line number Diff line number Diff line Loading @@ -25,4 +25,3 @@ /srv/reproducible-results /srv/reproducible-results none rw,bind 0 0 /srv/d-i /srv/d-i none rw,bind 0 0 /srv/jenkins /srv/jenkins none rw,bind 0 0 /srv/live-build /srv/live-build none rw,bind 0 0
hosts/common/etc/sudoers.d/jenkins +0 −2 Original line number Diff line number Diff line Loading @@ -15,11 +15,9 @@ jenkins ALL= \ /bin/ls -la /media/*, \ /bin/rm -rf --one-file-system /chroots/*, \ /bin/rm -rf --one-file-system /schroots/*, \ /bin/rm -rf --one-file-system /srv/live-build/*, \ /bin/rm -rf --one-file-system /srv/workspace/pbuilder/*, \ /bin/rm -rf --one-file-system /tmp/*, \ /bin/rm -rv --one-file-system /tmp/*, \ /bin/cp -v *.iso /srv/live-build/results/*, \ /bin/mv /chroots/* /schroots/*, \ /bin/mv /schroots/* /schroots/*, \ /bin/umount -l /chroots/*, \ Loading
hosts/jenkins-test-vm/etc/sudoers.d/jenkins +0 −2 Original line number Diff line number Diff line Loading @@ -13,9 +13,7 @@ jenkins ALL= \ /bin/ls -la /media/*, \ /bin/rm -rf --one-file-system /chroots/*, \ /bin/rm -rf --one-file-system /schroots/*, \ /bin/rm -rf --one-file-system /srv/live-build/*, \ /bin/rm -rf --one-file-system /srv/workspace/pbuilder/*, \ /bin/cp -v *.iso /srv/live-build/results/*, \ /bin/mv /chroots/* /schroots/*, \ /bin/mv /schroots/* /schroots/*, \ /bin/umount -l /chroots/*, \ Loading