Skip to content

Commit 862dfe0

Browse files
committed
added support to verify jammy. fix lack of force parameter
1 parent 687bf44 commit 862dfe0

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

buildkite/scripts/release/manager.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,12 @@ function publish_debian() {
440440
echo " 📦 Target debian version: $(calculate_debian_version $__artifact $__target_version $__codename "$__network" "$__arch")"
441441
if [[ $__dry_run == 0 ]]; then
442442
# shellcheck disable=SC2068
443+
# shellcheck disable=SC2046
443444
prefix_cmd "$SUBCOMMAND_TAB" source $SCRIPTPATH/../../../scripts/debian/publish.sh \
444445
--names "$DEBIAN_CACHE_FOLDER/$__codename/${__new_artifact_name}_${__target_version}_${__arch}.deb" \
445446
--version $__target_version \
446447
--bucket $__debian_repo \
447-
"$(if [[ $__force_upload_debians == 1 ]]; then echo "--force"; fi)" \
448+
$(if [[ $__force_upload_debians == 1 ]]; then echo "--force"; fi) \
448449
-c $__codename \
449450
-r $__channel \
450451
--arch $__arch \

scripts/debian/publish.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ for _ in {1..10}; do (
109109
#>> Repository is locked by another user: at host dc7eaad3c537
110110
#>> Attempting to obtain a lock
111111
#/var/lib/gems/2.3.0/gems/deb-s3-0.10.0/lib/deb/s3/lock.rb:24:in `throw': uncaught throw #"Unable to obtain a lock after 60, giving up."
112+
# shellcheck disable=SC2046
112113
deb-s3 upload $BUCKET_ARG $S3_REGION_ARG \
113-
"$([ "$FORCE" -eq 0 ] && echo "--fail-if-exists")" \
114+
$(if [[ "$FORCE" -eq 0 ]]; then echo "--fail-if-exists"; fi) \
114115
--lock \
115116
--arch $ARCH \
116117
--preserve-versions \

scripts/debian/verify.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ SCRIPT=' set -x \
9696

9797
case $CODENAME in
9898
bullseye|bookworm) DOCKER_IMAGE="debian:$CODENAME" ;;
99-
focal|noble) DOCKER_IMAGE="ubuntu:$CODENAME" ;;
99+
focal|noble|jammy) DOCKER_IMAGE="ubuntu:$CODENAME" ;;
100100
*) echo "❌ Unknown codename passed: $CODENAME"; exit 1;;
101101
esac
102102

0 commit comments

Comments
 (0)