Skip to content

Commit 3e05afa

Browse files
Bot Updating Templated Files
1 parent f2d5c41 commit 3e05afa

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

Jenkinsfile

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ pipeline {
509509
--label \"org.opencontainers.image.title=Baseimage-ubuntu\" \
510510
--label \"org.opencontainers.image.description=baseimage-ubuntu image by linuxserver.io\" \
511511
--no-cache --pull -t ${IMAGE}:${META_TAG} --platform=linux/amd64 \
512-
--provenance=false --sbom=false --builder=container --load \
512+
--provenance=true --sbom=true --builder=container --load \
513513
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
514514
sh '''#! /bin/bash
515515
set -e
@@ -538,7 +538,9 @@ pipeline {
538538
for i in "${CACHE[@]}"; do
539539
docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
540540
done
541-
wait
541+
for p in $(jobs -p); do
542+
wait "$p" || { echo "job $p failed" >&2; exit 1; }
543+
done
542544
fi
543545
'''
544546
}
@@ -572,7 +574,7 @@ pipeline {
572574
--label \"org.opencontainers.image.title=Baseimage-ubuntu\" \
573575
--label \"org.opencontainers.image.description=baseimage-ubuntu image by linuxserver.io\" \
574576
--no-cache --pull -t ${IMAGE}:amd64-${META_TAG} --platform=linux/amd64 \
575-
--provenance=false --sbom=false --builder=container --load \
577+
--provenance=true --sbom=true --builder=container --load \
576578
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
577579
sh '''#! /bin/bash
578580
set -e
@@ -601,7 +603,9 @@ pipeline {
601603
for i in "${CACHE[@]}"; do
602604
docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
603605
done
604-
wait
606+
for p in $(jobs -p); do
607+
wait "$p" || { echo "job $p failed" >&2; exit 1; }
608+
done
605609
fi
606610
'''
607611
}
@@ -628,7 +632,7 @@ pipeline {
628632
--label \"org.opencontainers.image.title=Baseimage-ubuntu\" \
629633
--label \"org.opencontainers.image.description=baseimage-ubuntu image by linuxserver.io\" \
630634
--no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} --platform=linux/arm64 \
631-
--provenance=false --sbom=false --builder=container --load \
635+
--provenance=true --sbom=true --builder=container --load \
632636
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
633637
sh '''#! /bin/bash
634638
set -e
@@ -657,7 +661,9 @@ pipeline {
657661
for i in "${CACHE[@]}"; do
658662
docker push ${i}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} &
659663
done
660-
wait
664+
for p in $(jobs -p); do
665+
wait "$p" || { echo "job $p failed" >&2; exit 1; }
666+
done
661667
fi
662668
'''
663669
}
@@ -900,7 +906,7 @@ pipeline {
900906
echo '{"tag_name":"'${META_TAG}'",\
901907
"target_commitish": "jammy",\
902908
"name": "'${META_TAG}'",\
903-
"body": "**CI Report:**\\n\\n'${CI_URL:-N/A}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**OS Changes:**\\n\\n' > start
909+
"body": "**CI Report:**\\n\\n'${CI_URL:-N/A}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**Remote Changes:**\\n\\n' > start
904910
printf '","draft": false,"prerelease": false}' >> releasebody.json
905911
paste -d'\\0' start releasebody.json > releasebody.json.done
906912
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done'''

0 commit comments

Comments
 (0)