Skip to content

Commit b9fbb37

Browse files
Bot Updating Templated Files
1 parent 78dc8c0 commit b9fbb37

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
@@ -586,7 +586,7 @@ pipeline {
586586
--label \"org.opencontainers.image.title=Lazylibrarian\" \
587587
--label \"org.opencontainers.image.description=[Lazylibrarian](https://lazylibrarian.gitlab.io/) is a program to follow authors and grab metadata for all your digital reading needs. It uses a combination of Goodreads Librarything and optionally GoogleBooks as sources for author info and book info. This container is based on the DobyTang fork. \" \
588588
--no-cache --pull -t ${IMAGE}:${META_TAG} --platform=linux/amd64 \
589-
--provenance=false --sbom=false --builder=container --load \
589+
--provenance=true --sbom=true --builder=container --load \
590590
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
591591
sh '''#! /bin/bash
592592
set -e
@@ -615,7 +615,9 @@ pipeline {
615615
for i in "${CACHE[@]}"; do
616616
docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
617617
done
618-
wait
618+
for p in $(jobs -p); do
619+
wait "$p" || { echo "job $p failed" >&2; exit 1; }
620+
done
619621
fi
620622
'''
621623
}
@@ -650,7 +652,7 @@ pipeline {
650652
--label \"org.opencontainers.image.title=Lazylibrarian\" \
651653
--label \"org.opencontainers.image.description=[Lazylibrarian](https://lazylibrarian.gitlab.io/) is a program to follow authors and grab metadata for all your digital reading needs. It uses a combination of Goodreads Librarything and optionally GoogleBooks as sources for author info and book info. This container is based on the DobyTang fork. \" \
652654
--no-cache --pull -t ${IMAGE}:amd64-${META_TAG} --platform=linux/amd64 \
653-
--provenance=false --sbom=false --builder=container --load \
655+
--provenance=true --sbom=true --builder=container --load \
654656
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
655657
sh '''#! /bin/bash
656658
set -e
@@ -679,7 +681,9 @@ pipeline {
679681
for i in "${CACHE[@]}"; do
680682
docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
681683
done
682-
wait
684+
for p in $(jobs -p); do
685+
wait "$p" || { echo "job $p failed" >&2; exit 1; }
686+
done
683687
fi
684688
'''
685689
}
@@ -707,7 +711,7 @@ pipeline {
707711
--label \"org.opencontainers.image.title=Lazylibrarian\" \
708712
--label \"org.opencontainers.image.description=[Lazylibrarian](https://lazylibrarian.gitlab.io/) is a program to follow authors and grab metadata for all your digital reading needs. It uses a combination of Goodreads Librarything and optionally GoogleBooks as sources for author info and book info. This container is based on the DobyTang fork. \" \
709713
--no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} --platform=linux/arm64 \
710-
--provenance=false --sbom=false --builder=container --load \
714+
--provenance=true --sbom=true --builder=container --load \
711715
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
712716
sh '''#! /bin/bash
713717
set -e
@@ -736,7 +740,9 @@ pipeline {
736740
for i in "${CACHE[@]}"; do
737741
docker push ${i}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} &
738742
done
739-
wait
743+
for p in $(jobs -p); do
744+
wait "$p" || { echo "job $p failed" >&2; exit 1; }
745+
done
740746
fi
741747
'''
742748
}
@@ -979,7 +985,7 @@ pipeline {
979985
echo '{"tag_name":"'${META_TAG}'",\
980986
"target_commitish": "master",\
981987
"name": "'${META_TAG}'",\
982-
"body": "**CI Report:**\\n\\n'${CI_URL:-N/A}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**'${EXT_GITLAB_PROJ}' Changes:**\\n\\n' > start
988+
"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
983989
printf '","draft": false,"prerelease": false}' >> releasebody.json
984990
paste -d'\\0' start releasebody.json > releasebody.json.done
985991
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)