[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible Arch Linux: also do Arch Linux maintenance on pb4 and jenkins

Holger Levsen holger at layer-acht.org
Thu Nov 23 11:33:18 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 9d8d9898d31b4fbc02c413a461a8c56248d181c8
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Nov 23 11:32:11 2017 +0000

    reproducible Arch Linux: also do Arch Linux maintenance on pb4 and jenkins
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_maintenance.sh | 27 +++++++++++++++------------
 1 file changed, 15 insertions(+), 12 deletions(-)

diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 3894f0a..d300fac 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -154,18 +154,21 @@ set -e
 
 # for Arch Linux
 set +e
-if [ "$HOSTNAME" = "${ARCHLINUX_BUILD_NODE}" ] ; then
-	echo "$(date -u) - updating Arch Linux schroot now."
-	schroot --directory /tmp -c source:jenkins-reproducible-archlinux -u root -- pacman -Syu --noconfirm
-	RESULT=$?
-	if [ $RESULT -eq 1 ] ; then
-		# FIXME: this should be a warning, not a shrugs - but Arch Linux will soon be build differently…
-		echo "shrugs: failed to update Arch Linux schroot."
-		#DIRTY=true
-	else
-		echo "$(date -u) - updating Arch Linux schroot done."
-	fi
-fi
+case $HOSTNAME in
+	profitbricks-build3-amd64|profitbricks-build4-amd64|jenkins)
+		echo "$(date -u) - updating Arch Linux schroot now."
+		schroot --directory /tmp -c source:jenkins-reproducible-archlinux -u root -- pacman -Syu --noconfirm
+		RESULT=$?
+		if [ $RESULT -eq 1 ] ; then
+			# FIXME: this should be a warning, not a shrugs - but Arch Linux will soon be build differently…
+			echo "shrugs: failed to update Arch Linux schroot."
+			#DIRTY=true
+		else
+			echo "$(date -u) - updating Arch Linux schroot done."
+		fi
+		;;
+	*)	;;
+esac
 set -e
 
 # delete build services logfiles

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list