Skip to content

Commit 7f5b4e6

Browse files
committed
fix: queue Jenkins release builds asynchronously
1 parent a9c0b2a commit 7f5b4e6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎scripts/jenkins-local-job.sh‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ case "${1:-}" in
4949
test -r "$config" && rg -n '<triggers|pollSCM|release-tooling|file://' "$config"
5050
;;
5151
trigger)
52-
cli build "$job_name" -s
53-
echo "triggered $jenkins_url/job/$job_name/"
52+
# Do not attach the caller's lifetime to the build. Interrupting a local
53+
# terminal while `build -s` waits propagates an abort to Jenkins.
54+
cli build "$job_name"
55+
echo "queued $jenkins_url/job/$job_name/"
5456
;;
5557
*) echo "usage: $0 configure|inspect|trigger" >&2; exit 2 ;;
5658
esac

0 commit comments

Comments
 (0)