blob: b5ea832681a23eeee3266f67521f7b8bfa5eda2b [file] [log] [blame] [edit]
#!/bin/bash
# Wait for the piped-in "led launch" to finish. Afterwards, produce an exit
# status that corresponds to that of the run.
set -e
set -o pipefail
bbid=$(jq -r .buildbucket.build_id)
status=$(bb collect -fields status -json $bbid | jq -r .status)
[[ "$status" = "SUCCESS" ]]