summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-06-28 16:44:03 -0400
committerNat Goodspeed <nat@lindenlab.com>2023-06-28 16:44:03 -0400
commit853cf3928cba51fe1e84a51316f9698c55ba4ad4 (patch)
tree41cdaa55fb8fd3fbc4b2352000c0ece90af9a072 /build.sh
parentce3508613bc1db3ad05758f452ffecf293fba643 (diff)
SL-18837: Don't fetch (unmigrated) build-secrets, use GH secrets.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh18
1 files changed, 13 insertions, 5 deletions
diff --git a/build.sh b/build.sh
index 89609a9ffd..06a73aa8ca 100755
--- a/build.sh
+++ b/build.sh
@@ -146,12 +146,20 @@ pre_build()
fi
# don't spew credentials into build log
- bugsplat_sh="$build_secrets_checkout/bugsplat/bugsplat.sh"
set +x
- if [ -r "$bugsplat_sh" ]
- then # show that we're doing this, just not the contents
- echo source "$bugsplat_sh"
- source "$bugsplat_sh"
+ # expect these variables to be set in the environment from GitHub secrets
+ if [[ -z "$BUGSPLAT_USER" || -z "$BUGSPLAT_PASS" ]]
+ then
+ # older mechanism involving build-secrets repo -
+ # if build_secrets_checkout isn't set, report its name
+ bugsplat_sh="${build_secrets_checkout:-\$build_secrets_checkout}/bugsplat/bugsplat.sh"
+ if [ -r "$bugsplat_sh" ]
+ then # show that we're doing this, just not the contents
+ echo source "$bugsplat_sh"
+ source "$bugsplat_sh"
+ else
+ fatal "BUGSPLAT_USER or BUGSPLAT_PASS missing, and no $bugsplat_sh"
+ fi
fi
set -x