summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve McIntyre <steve@einval.com>2022-06-29 20:23:48 +0100
committerSteve McIntyre <steve@einval.com>2022-06-29 20:23:48 +0100
commit7d4b0a4b6f663a8ac6790075b0440085f09313c4 (patch)
tree2b959a9c7b3814a8419758bfa0539803500c2fe9
parent32f4e615ec93d21ccb286ccac2517b71b3809e2c (diff)
downloadsteve-scripts-7d4b0a4b6f663a8ac6790075b0440085f09313c4.zip
tweaks to run-shim-build
-rwxr-xr-xrun-shim-build6
1 files changed, 4 insertions, 2 deletions
diff --git a/run-shim-build b/run-shim-build
index a8f0545..1466f59 100755
--- a/run-shim-build
+++ b/run-shim-build
@@ -8,7 +8,6 @@ LOGDIR="$ARTIFACTS/build-logs"
BASE=/home/shim/shim-cron
STATEDIR=${BASE}/statedir
BR_DIR=${STATEDIR}/branches
-Q_DIR=${STATEDIR}/queues
BUILDFILE=$1
@@ -29,7 +28,7 @@ for ARCH in ${ARCHES/,/ }; do
# Do an initial check right now - if we don't get a reproducible
# build then this is a hard failure
- echo "Found $SUCCESS successful builds in $OUT_DIR"
+ echo "Found $SUCCESS successful builds in $OUT_DIR" >> ${LOGFILE}
if [ $SUCCESS = 2 ]; then
echo "All builds succeeded, doing sone analysis" >> ${LOGFILE}
echo "Checking for reproducible build:" >> ${LOGFILE}
@@ -51,6 +50,9 @@ for ARCH in ${ARCHES/,/ }; do
echo " Checksums from builds match OK!" >> ${LOGFILE}
echo " Deleting build #2, no need for it" >> ${LOGFILE}
rm -rvf "$OUT_DIR/build-$MACHINE-2-SUCCESS" >> ${LOGFILE} 2>&1
+ echo " Marking build #1 as ready for sign and test" >> ${LOGFILE}
+ printf "MACHINE=${MACHINE}\nSSH_USER=${SSH_USER}\nARCHES=${ARCH}\nDIST=${DIST}\nHASH=${HASH}\nARTIFACTS=${OUT_DIR}/build-${MACHINE}-1-SUCCESS\n" \
+ > "$OUT_DIR/build-$MACHINE-1-SUCCESS/ready-for-signing"
fi
fi
done