summaryrefslogtreecommitdiff
path: root/evergreen
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 15:11:23 +0000
commit92e728ced8820a3589f2b1a805b6f7a4effcfec5 (patch)
tree165421aa975f051f605ef716dc66dbe123aa56ce /evergreen
parenta3af68e9a495b2ea5a48f2040c5d266cfff3d76c (diff)
downloadmongo-92e728ced8820a3589f2b1a805b6f7a4effcfec5.tar.gz
SERVER-64332 skip macos notarization for archives which don't exist.
Diffstat (limited to 'evergreen')
-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 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