Skip to content
Snippets Groups Projects
Commit caed5e8c authored by Roland Clobus's avatar Roland Clobus Committed by Holger Levsen
Browse files

reproducible_debian_live_build: Publish the last reproducible ISO image

parent 77f487f5
No related branches found
No related tags found
No related merge requests found
......@@ -30,13 +30,16 @@ output_echo() {
cleanup() {
output_echo "Publishing results."
# Do not publish the ISO images as artifact, they would be able to consume too much disk space
if [ ! -z "${RESULTSDIR}" ]; then
rm -rf ${RESULTSDIR}/b1
rm -rf ${RESULTSDIR}/b2
fi
if [ "$1" == "success" ]; then
# Publish the ISO image and its summary
export PAGE=last-reproducible-image.txt
cp -a ${RESULTSDIR}/summary_build1.txt ${PAGE}
publish_page debian_live_build
export PAGE=last-reproducible-image.iso
cp -a ${RESULTSDIR}/b1/${PROJECTNAME}/${CONFIGURATION}/live-image-amd64.hybrid.iso ${PAGE}
publish_page debian_live_build
export PAGE=${CONFIGURATION}-${DEBIAN_VERSION}.txt
mv ${RESULTSDIR}/summary_build1.txt ${PAGE}
rm ${RESULTSDIR}/summary_build2.txt
......@@ -53,6 +56,10 @@ cleanup() {
output_echo "Error: Something went wrong."
fi
if [ ! -z "${RESULTSDIR}" ]; then
# Do not publish the ISO images as artifact, they would be able to consume too much disk space
rm -rf ${RESULTSDIR}/b1
rm -rf ${RESULTSDIR}/b2
TMPDIR=${RESULTSDIR}
save_artifacts debian_live_build ${CONFIGURATION}-${DEBIAN_VERSION} https://wiki.debian.org/ReproducibleInstalls/LiveImages
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment