Skip to content

Commit f9dccdf

Browse files
Bot Updating Templated Files
1 parent 7939790 commit f9dccdf

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

Jenkinsfile

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ pipeline {
510510
--label \"org.opencontainers.image.title=Ci\" \
511511
--label \"org.opencontainers.image.description=ci image by linuxserver.io\" \
512512
--no-cache --pull -t ${IMAGE}:${META_TAG} --platform=linux/amd64 \
513-
--provenance=false --sbom=false --builder=container --load \
513+
--provenance=true --sbom=true --builder=container --load \
514514
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
515515
sh '''#! /bin/bash
516516
set -e
@@ -539,7 +539,9 @@ pipeline {
539539
for i in "${CACHE[@]}"; do
540540
docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
541541
done
542-
wait
542+
for p in $(jobs -p); do
543+
wait "$p" || { echo "job $p failed" >&2; exit 1; }
544+
done
543545
fi
544546
'''
545547
}
@@ -574,7 +576,7 @@ pipeline {
574576
--label \"org.opencontainers.image.title=Ci\" \
575577
--label \"org.opencontainers.image.description=ci image by linuxserver.io\" \
576578
--no-cache --pull -t ${IMAGE}:amd64-${META_TAG} --platform=linux/amd64 \
577-
--provenance=false --sbom=false --builder=container --load \
579+
--provenance=true --sbom=true --builder=container --load \
578580
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
579581
sh '''#! /bin/bash
580582
set -e
@@ -603,7 +605,9 @@ pipeline {
603605
for i in "${CACHE[@]}"; do
604606
docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
605607
done
606-
wait
608+
for p in $(jobs -p); do
609+
wait "$p" || { echo "job $p failed" >&2; exit 1; }
610+
done
607611
fi
608612
'''
609613
}
@@ -631,7 +635,7 @@ pipeline {
631635
--label \"org.opencontainers.image.title=Ci\" \
632636
--label \"org.opencontainers.image.description=ci image by linuxserver.io\" \
633637
--no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} --platform=linux/arm64 \
634-
--provenance=false --sbom=false --builder=container --load \
638+
--provenance=true --sbom=true --builder=container --load \
635639
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
636640
sh '''#! /bin/bash
637641
set -e
@@ -660,7 +664,9 @@ pipeline {
660664
for i in "${CACHE[@]}"; do
661665
docker push ${i}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} &
662666
done
663-
wait
667+
for p in $(jobs -p); do
668+
wait "$p" || { echo "job $p failed" >&2; exit 1; }
669+
done
664670
fi
665671
'''
666672
}
@@ -903,7 +909,7 @@ pipeline {
903909
echo '{"tag_name":"'${META_TAG}'",\
904910
"target_commitish": "master",\
905911
"name": "'${META_TAG}'",\
906-
"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
912+
"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
907913
printf '","draft": false,"prerelease": false}' >> releasebody.json
908914
paste -d'\\0' start releasebody.json > releasebody.json.done
909915
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)