summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Moody <daniel.moody@mongodb.com>2022-04-27 14:14:29 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-27 17:31:09 +0000
commit1467e48f273673e0d792aedd6bdadb9636e48987 (patch)
tree66115acd346657877a6b8360bf14b7b7c1fa401e
parent64c8a56420b43efc0003feb6522d0002fd53513d (diff)
downloadmongo-1467e48f273673e0d792aedd6bdadb9636e48987.tar.gz
SERVER-64332 skip macos notarization for archives which don't exist.
(cherry picked from commit 92e728ced8820a3589f2b1a805b6f7a4effcfec5)
-rw-r--r--evergreen/notary_client_run.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/evergreen/notary_client_run.sh b/evergreen/notary_client_run.sh
index 90fb3366370..1565ca80df3 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