Skip to content

Commit

Permalink
Checks if unpause jobs are left before trying
Browse files Browse the repository at this point in the history
  • Loading branch information
bonzofenix committed May 28, 2024
1 parent 15416b8 commit 6acfcca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ci/scripts/unpause-pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ target="app-autoscaler-release"
function unpause-job(){
pipeline="$1"
jobs=$(fly -t "$target" jobs -p "$pipeline" --json | jq ".[] | select(.paused==true) | .name" -r)

if [[ -z "$jobs" ]]; then
echo "No paused job in pipeline $pipeline"
return
fi

selected_job=$(gum choose --no-limit $jobs --header "Select jobs to unpause from pipeline $pipeline")


Expand Down

0 comments on commit 6acfcca

Please sign in to comment.