Skip to content
This repository was archived by the owner on Jul 5, 2025. It is now read-only.

Commit 15270e9

Browse files
Bot Updating Templated Files
1 parent 3e61931 commit 15270e9

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
@@ -585,7 +585,7 @@ pipeline {
585585
--label \"org.opencontainers.image.title=Netbootxyz\" \
586586
--label \"org.opencontainers.image.description=[Netbootxyz](https://netboot.xyz) is a way to PXE boot various operating system installers or utilities from one place within the BIOS without the need of having to go retrieve the media to run the tool. iPXE is used to provide a user friendly menu from within the BIOS that lets you easily choose the operating system you want along with any specific types of versions or bootable flags.\" \
587587
--no-cache --pull -t ${IMAGE}:${META_TAG} --platform=linux/amd64 \
588-
--provenance=false --sbom=false --builder=container --load \
588+
--provenance=true --sbom=true --builder=container --load \
589589
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
590590
sh '''#! /bin/bash
591591
set -e
@@ -614,7 +614,9 @@ pipeline {
614614
for i in "${CACHE[@]}"; do
615615
docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
616616
done
617-
wait
617+
for p in $(jobs -p); do
618+
wait "$p" || { echo "job $p failed" >&2; exit 1; }
619+
done
618620
fi
619621
'''
620622
}
@@ -649,7 +651,7 @@ pipeline {
649651
--label \"org.opencontainers.image.title=Netbootxyz\" \
650652
--label \"org.opencontainers.image.description=[Netbootxyz](https://netboot.xyz) is a way to PXE boot various operating system installers or utilities from one place within the BIOS without the need of having to go retrieve the media to run the tool. iPXE is used to provide a user friendly menu from within the BIOS that lets you easily choose the operating system you want along with any specific types of versions or bootable flags.\" \
651653
--no-cache --pull -t ${IMAGE}:amd64-${META_TAG} --platform=linux/amd64 \
652-
--provenance=false --sbom=false --builder=container --load \
654+
--provenance=true --sbom=true --builder=container --load \
653655
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
654656
sh '''#! /bin/bash
655657
set -e
@@ -678,7 +680,9 @@ pipeline {
678680
for i in "${CACHE[@]}"; do
679681
docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
680682
done
681-
wait
683+
for p in $(jobs -p); do
684+
wait "$p" || { echo "job $p failed" >&2; exit 1; }
685+
done
682686
fi
683687
'''
684688
}
@@ -706,7 +710,7 @@ pipeline {
706710
--label \"org.opencontainers.image.title=Netbootxyz\" \
707711
--label \"org.opencontainers.image.description=[Netbootxyz](https://netboot.xyz) is a way to PXE boot various operating system installers or utilities from one place within the BIOS without the need of having to go retrieve the media to run the tool. iPXE is used to provide a user friendly menu from within the BIOS that lets you easily choose the operating system you want along with any specific types of versions or bootable flags.\" \
708712
--no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} --platform=linux/arm64 \
709-
--provenance=false --sbom=false --builder=container --load \
713+
--provenance=true --sbom=true --builder=container --load \
710714
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
711715
sh '''#! /bin/bash
712716
set -e
@@ -735,7 +739,9 @@ pipeline {
735739
for i in "${CACHE[@]}"; do
736740
docker push ${i}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} &
737741
done
738-
wait
742+
for p in $(jobs -p); do
743+
wait "$p" || { echo "job $p failed" >&2; exit 1; }
744+
done
739745
fi
740746
'''
741747
}
@@ -978,7 +984,7 @@ pipeline {
978984
echo '{"tag_name":"'${META_TAG}'",\
979985
"target_commitish": "tftp",\
980986
"name": "'${META_TAG}'",\
981-
"body": "**CI Report:**\\n\\n'${CI_URL:-N/A}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**'${EXT_REPO}' Changes:**\\n\\n' > start
987+
"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
982988
printf '","draft": false,"prerelease": true}' >> releasebody.json
983989
paste -d'\\0' start releasebody.json > releasebody.json.done
984990
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)