blob: 6cb2abd3a89b0efd22b1543d25bbb252644a27d0 [file] [log] [blame]
#!/bin/bash
# Copyright 2025 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Wait for the piped-in "led launch" to finish. Afterwards, produce an exit
# status that corresponds to that of the run, and print the cas digest.
set -e
set -o pipefail
readonly BBID="$(jq -r .buildbucket.build_id)"
readonly STATUS="$(bb collect -fields status -json $BBID | jq -r .status)"
[[ "$STATUS" = "SUCCESS" ]] || exit 125
bb collect -p -json $BBID | jq -r .output.properties.isolated