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:28:41 +0000 |
commit | 7706878536b0079250a219cc96ae09a1cb5e9492 (patch) | |
tree | ffd046660e7149c7ce362d691ba4a540f863dbd2 | |
parent | a5f97721c7932b9d74e344c06163332e35c0a850 (diff) | |
download | mongo-7706878536b0079250a219cc96ae09a1cb5e9492.tar.gz |
SERVER-64332 skip macos notarization for archives which don't exist.
(cherry picked from commit 92e728ced8820a3589f2b1a805b6f7a4effcfec5)
(cherry picked from commit 7865c18d9bdb0b299e212a6c9927cbfc11de4c94)
-rw-r--r-- | etc/evergreen.yml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml index ab103fcce3f..cd0c37a8fff 100644 --- a/etc/evergreen.yml +++ b/etc/evergreen.yml @@ -6727,10 +6727,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 |