diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-12-11 15:14:20 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-12-11 15:14:20 +0100 |
commit | ee696ffe65fd81c5575cb2f07c2e3d4460c99598 (patch) | |
tree | e9611a5f5f734b4548936ce103592b2c208e1d04 /bin/reproducible_maintenance.sh | |
parent | f856d3557ca25a00d39d62436123ac29357b2dae (diff) | |
download | jenkins.debian.net-ee696ffe65fd81c5575cb2f07c2e3d4460c99598.tar.xz |
reproducible archlinux: update build schroot via maintenance job
Diffstat (limited to 'bin/reproducible_maintenance.sh')
-rwxr-xr-x | bin/reproducible_maintenance.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index 755987d7..a2525c9d 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -41,6 +41,7 @@ if [ "$HOSTNAME" = "$MAINNODE" ] ; then cp -v $PACKAGES_DB $BASE/ fi +# for Debian echo "$(date -u) - updating the schroots and pbuilder now..." set +e # use host architecture (only) @@ -101,6 +102,13 @@ for s in $SUITES ; do done set -e +# for Archlinux +if [ "$HOSTNAME" = "$ARCHLINUX_BUILD_NODE" ] ; then + echo "$(date -u) - updating Archlinux schroot now." + schroot --directory /tmp -c source:jenkins-reproducible-archlinux -u root -- pacman -Syu --noconfirm + echo "$(date -u) - updating Archlinux schroot done." +fi + # delete old temp directories echo "$(date -u) - Deleting temp directories, older than 2 days." OLDSTUFF=$(find $REP_RESULTS -maxdepth 1 -type d -name "tmp.*" -mtime +1 -exec ls -lad {} \; || true) |