Skip to content

Commit b172ae2

Browse files
Bot Updating Templated Files
1 parent dfaa662 commit b172ae2

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
@@ -585,7 +585,7 @@ pipeline {
585585
--label \"org.opencontainers.image.title=Airsonic-advanced\" \
586586
--label \"org.opencontainers.image.description=[Airsonic-advanced](https://github.com/airsonic-advanced/airsonic-advanced) is a free, web-based media streamer, providing ubiquitious access to your music. Use it to share your music with friends, or to listen to your own music while at work. You can stream to multiple players simultaneously, for instance to one player in your kitchen and another in your living room.\" \
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=Airsonic-advanced\" \
650652
--label \"org.opencontainers.image.description=[Airsonic-advanced](https://github.com/airsonic-advanced/airsonic-advanced) is a free, web-based media streamer, providing ubiquitious access to your music. Use it to share your music with friends, or to listen to your own music while at work. You can stream to multiple players simultaneously, for instance to one player in your kitchen and another in your living room.\" \
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=Airsonic-advanced\" \
707711
--label \"org.opencontainers.image.description=[Airsonic-advanced](https://github.com/airsonic-advanced/airsonic-advanced) is a free, web-based media streamer, providing ubiquitious access to your music. Use it to share your music with friends, or to listen to your own music while at work. You can stream to multiple players simultaneously, for instance to one player in your kitchen and another in your living room.\" \
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": "master",\
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)