summaryrefslogtreecommitdiff
path: root/etc/evergreen.yml
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:25:24 +0000
commit1043a07341ec04849eebae2939e0cfddee401e43 (patch)
treef2a8c27176ba1306d94b455ad55f243adb98d130 /etc/evergreen.yml
parentc3a1283b77ac3852a30c9a5c7069c8b2e3f30a8c (diff)
downloadmongo-1043a07341ec04849eebae2939e0cfddee401e43.tar.gz
SERVER-64332 skip macos notarization for archives which don't exist.
(cherry picked from commit 92e728ced8820a3589f2b1a805b6f7a4effcfec5)
Diffstat (limited to 'etc/evergreen.yml')
-rw-r--r--etc/evergreen.yml12
1 files changed, 8 insertions, 4 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index 67d6a295027..407576dceff 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -8016,10 +8016,14 @@ tasks:
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