Skip to content

Commit 73afec2

Browse files
Bot Updating Templated Files
1 parent 3306a26 commit 73afec2

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

Jenkinsfile

+13-7
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ pipeline {
579579
--label \"org.opencontainers.image.title=Syslog-ng\" \
580580
--label \"org.opencontainers.image.description=[syslog-ng](https://www.syslog-ng.com/products/open-source-log-management/) allows you to flexibly collect, parse, classify, rewrite and correlate logs from across your infrastructure and store or route them to log analysis tools.\" \
581581
--no-cache --pull -t ${IMAGE}:${META_TAG} --platform=linux/amd64 \
582-
--provenance=false --sbom=false --builder=container --load \
582+
--provenance=true --sbom=true --builder=container --load \
583583
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
584584
sh '''#! /bin/bash
585585
set -e
@@ -608,7 +608,9 @@ pipeline {
608608
for i in "${CACHE[@]}"; do
609609
docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
610610
done
611-
wait
611+
for p in $(jobs -p); do
612+
wait "$p" || { echo "job $p failed" >&2; exit 1; }
613+
done
612614
fi
613615
'''
614616
}
@@ -643,7 +645,7 @@ pipeline {
643645
--label \"org.opencontainers.image.title=Syslog-ng\" \
644646
--label \"org.opencontainers.image.description=[syslog-ng](https://www.syslog-ng.com/products/open-source-log-management/) allows you to flexibly collect, parse, classify, rewrite and correlate logs from across your infrastructure and store or route them to log analysis tools.\" \
645647
--no-cache --pull -t ${IMAGE}:amd64-${META_TAG} --platform=linux/amd64 \
646-
--provenance=false --sbom=false --builder=container --load \
648+
--provenance=true --sbom=true --builder=container --load \
647649
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
648650
sh '''#! /bin/bash
649651
set -e
@@ -672,7 +674,9 @@ pipeline {
672674
for i in "${CACHE[@]}"; do
673675
docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
674676
done
675-
wait
677+
for p in $(jobs -p); do
678+
wait "$p" || { echo "job $p failed" >&2; exit 1; }
679+
done
676680
fi
677681
'''
678682
}
@@ -700,7 +704,7 @@ pipeline {
700704
--label \"org.opencontainers.image.title=Syslog-ng\" \
701705
--label \"org.opencontainers.image.description=[syslog-ng](https://www.syslog-ng.com/products/open-source-log-management/) allows you to flexibly collect, parse, classify, rewrite and correlate logs from across your infrastructure and store or route them to log analysis tools.\" \
702706
--no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} --platform=linux/arm64 \
703-
--provenance=false --sbom=false --builder=container --load \
707+
--provenance=true --sbom=true --builder=container --load \
704708
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
705709
sh '''#! /bin/bash
706710
set -e
@@ -729,7 +733,9 @@ pipeline {
729733
for i in "${CACHE[@]}"; do
730734
docker push ${i}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} &
731735
done
732-
wait
736+
for p in $(jobs -p); do
737+
wait "$p" || { echo "job $p failed" >&2; exit 1; }
738+
done
733739
fi
734740
'''
735741
}
@@ -972,7 +978,7 @@ pipeline {
972978
echo '{"tag_name":"'${META_TAG}'",\
973979
"target_commitish": "main",\
974980
"name": "'${META_TAG}'",\
975-
"body": "**CI Report:**\\n\\n'${CI_URL:-N/A}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**Repo Changes:**\\n\\n' > start
981+
"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
976982
printf '","draft": false,"prerelease": false}' >> releasebody.json
977983
paste -d'\\0' start releasebody.json > releasebody.json.done
978984
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)