Skip to content
Commits on Source (3)
......@@ -277,12 +277,17 @@ else
done
echo
report_disk_usage $1
report_filetype_usage $1 png warn
report_filetype_usage $1 bak warn
report_filetype_usage $1 png
report_filetype_usage $1 bak
report_filetype_usage $1 raw warn
report_filetype_usage $1 iso warn
echo "WARNING: there is no check / handling on stale lvm volumes"
rm $ACTIVE_JOBS $WATCHED_JOBS $RUNNING
for VOLUME in $(sudo lvdisplay jenkins01|grep "LV Path" |grep -v "/dev/jenkins01/swap" | cut -d '/' -f2-) ; do
if [ -z "$(ps fax | grep "$VOLUME" | grep -v grep)" ] ; then
echo "Error: /$VOLUME exists, but no running job is using it."
exit 1
fi
done
;;
d-i) report_old_directories /srv/d-i 7 /srv/d-i/workspace /srv/d-i/isos
;;
......
......@@ -112,7 +112,7 @@ node_document_environment() {
echo " <tr><td>$i</td></tr>" >> "$toolchain_html"
done
echo "</table>" >> "$toolchain_html"
echo "<table><tr><th>Debian $(cat /etc/debian_version) package on $(dpkg --print-architecture)</th><th>installed version</th></tr>" >> "$toolchain_html"
echo "<table><tr><th>Debian $(cat /etc/debian_version) $(dpkg --print-architecture) package name</th><th>installed version</th></tr>" >> "$toolchain_html"
for i in gcc binutils bzip2 flex python perl make findutils grep diffutils unzip gawk util-linux zlib1g-dev libc6-dev git subversion ; do
echo " <tr><td>$i</td><td>" >> "$toolchain_html"
dpkg -s $i|grep '^Version'|cut -d " " -f2 >> "$toolchain_html"
......
......@@ -30,7 +30,7 @@ jenkins ALL= \
/bin/dd if=/dev/zero of=/dev/jenkins*, \
/usr/bin/qemu-system-x86_64 *, \
/usr/bin/qemu-img *, \
/sbin/lvcreate *, /sbin/lvremove *, \
/sbin/lvcreate *, /sbin/lvremove *, /sbin/lvdisplay *, \
/bin/mkdir -p /media/*, \
/usr/bin/guestmount *, \
/bin/cp -rv /media/*, \
......
......@@ -30,7 +30,7 @@ jenkins ALL= \
/bin/dd if=/dev/zero of=/dev/jenkins*, \
/usr/bin/qemu-system-x86_64 *, \
/usr/bin/qemu-img *, \
/sbin/lvcreate *, /sbin/lvremove *, \
/sbin/lvcreate *, /sbin/lvremove *, /sbin/lvdisplay *, \
/usr/bin/virsh -q snapshot-list *, /usr/bin/virsh snapshot-delete *, \
/bin/mkdir -p /media/*, \
/usr/bin/guestmount *, \
......
......@@ -31,7 +31,7 @@ jenkins ALL= \
/bin/dd if=/dev/zero of=/dev/jenkins*, \
/usr/bin/qemu-system-x86_64 *, \
/usr/bin/qemu-img *, \
/sbin/lvcreate *, /sbin/lvremove *, \
/sbin/lvcreate *, /sbin/lvremove *, /sbin/lvdisplay *, \
/usr/bin/virsh -q snapshot-list *, /usr/bin/virsh snapshot-delete *, \
/bin/mkdir -p /media/*, \
/usr/bin/guestmount *, \
......
......@@ -30,7 +30,7 @@ jenkins ALL= \
/bin/dd if=/dev/zero of=/dev/jenkins*, \
/usr/bin/qemu-system-x86_64 *, \
/usr/bin/qemu-img *, \
/sbin/lvcreate *, /sbin/lvremove *, \
/sbin/lvcreate *, /sbin/lvremove *, /sbin/lvdisplay *, \
/usr/bin/virsh -q snapshot-list *, /usr/bin/virsh snapshot-delete *, \
/bin/mkdir -p /media/*, \
/usr/bin/guestmount *, \
......