diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2022-04-27 14:14:29 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-27 17:21:14 +0000 |
commit | 8d2be1e9b00c915600addf000cfe58a3b4d351b7 (patch) | |
tree | 36a086ecf63fde6e2a0da30573af5943a5e76da5 /evergreen/notary_client_run.sh | |
parent | f97cda3761c5c2d9c5de2aa44322de49179f628e (diff) | |
download | mongo-8d2be1e9b00c915600addf000cfe58a3b4d351b7.tar.gz |
SERVER-64332 skip macos notarization for archives which don't exist.
(cherry picked from commit 92e728ced8820a3589f2b1a805b6f7a4effcfec5)
Diffstat (limited to 'evergreen/notary_client_run.sh')
-rw-r--r-- | evergreen/notary_client_run.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/evergreen/notary_client_run.sh b/evergreen/notary_client_run.sh index 88d2eef53d5..9bd63dbe539 100644 --- a/evergreen/notary_client_run.sh +++ b/evergreen/notary_client_run.sh @@ -19,10 +19,14 @@ if [[ "${push_name}" == "macos"* ]]; then chmod +x ./linux_amd64/macnotary bins=("mongo-binaries.tgz" "mongo-shell.tgz" "mongo-cryptd.tgz" "mh.tgz") for archive in ${bins[@]}; do - TEMP_ARCHIVE="$(mktemp -p $PWD)" - mv "$archive" "$TEMP_ARCHIVE" - ./linux_amd64/macnotary -f "$TEMP_ARCHIVE" -m notarizeAndSign -u https://dev.macos-notary.build.10gen.cc/api -k server -s ${MACOS_NOTARY_TOKEN} -b server.mongodb.com -o "$archive" - rm -f "$TEMP_ARCHIVE" + if [ -f "$archive" ]; then + TEMP_ARCHIVE="$(mktemp -p $PWD)" + mv "$archive" "$TEMP_ARCHIVE" + ./linux_amd64/macnotary -f "$TEMP_ARCHIVE" -m notarizeAndSign -u https://dev.macos-notary.build.10gen.cc/api -k server -s ${MACOS_NOTARY_TOKEN} -b server.mongodb.com -o "$archive" + rm -f "$TEMP_ARCHIVE" + else + echo "Skipping macos notarization for $archive because it doesn't exist." + fi done fi |