diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-11-21 21:08:54 +0000 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-11-21 21:08:54 +0000 |
commit | d43174a98c41bc6a91028f574a51acc6a2ea46e9 (patch) | |
tree | 06b95e6ea2bfdc6137dca79c8b7d1bcea80d6e7d /bin/reproducible_build_archlinux_pkg.sh | |
parent | 0e382bfd6fb24f1f082a3e3f56dd0c5aea91d8d4 (diff) | |
download | jenkins.debian.net-d43174a98c41bc6a91028f574a51acc6a2ea46e9.tar.xz |
reproducible Arch Linux: also do one build 398 days in the future
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_build_archlinux_pkg.sh')
-rwxr-xr-x | bin/reproducible_build_archlinux_pkg.sh | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/bin/reproducible_build_archlinux_pkg.sh b/bin/reproducible_build_archlinux_pkg.sh index 89ca4e98..ed082dd1 100755 --- a/bin/reproducible_build_archlinux_pkg.sh +++ b/bin/reproducible_build_archlinux_pkg.sh @@ -222,7 +222,7 @@ second_build() { remote_build() { local BUILDNR=$1 - local NODE=$ARCHLINUX_BUILD_NODE + local NODE=$2 local FQDN=$NODE.debian.net local PORT=22 set +e @@ -322,10 +322,21 @@ SRCPACKAGE="" choose_package # build package twice mkdir b1 b2 -remote_build 1 +# currently there are two Arch Linux build nodes… let's keep things simple +N1="profitbricks-build3-amd64" +N2="profitbricks-build4-amd64" +# if random number between 0 and 1 is greater than 1… +if [ $(( ( $RANDOM % 2 ) )) -gt 0 ] ; then + NODE1=$N1 + NODE2=$N2 +else + NODE1=$N2 + NODE2=$N1 +fi +remote_build $NODE1 # only do the 2nd build if the 1st produced results if [ ! -z "$(ls $TMPDIR/b1/$SRCPACKAGE/*.pkg.tar.xz 2>/dev/null|| true)" ] ; then - remote_build 2 + remote_build $NODE2 cd $TMPDIR/b1/$SRCPACKAGE for ARTIFACT in *.pkg.tar.xz ; do [ -f $ARTIFACT ] || continue |