Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions packages/build/src/run-draft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,20 @@ export async function runDraft(
tmpDir
);

await notarizeArtifact(
downloadedArtifact,
{
signingKeyName: config.notarySigningKeyName || '',
authToken: config.notaryAuthToken || '',
signingComment: 'Evergreen Automatic Signing (mongosh)'
}
);
let signatureFile: string | undefined = downloadedArtifact + '.sig';
let signatureFile: string | undefined;
try {
await notarizeArtifact(
downloadedArtifact,
{
signingKeyName: config.notarySigningKeyName || '',
authToken: config.notaryAuthToken || '',
signingComment: 'Evergreen Automatic Signing (mongosh)'
}
);
signatureFile = downloadedArtifact + '.sig';
await fs.access(signatureFile, fsConstants.R_OK);
} catch (err: any) {
console.info(`Skipping expected signature file ${signatureFile}: ${err.message}`);
console.warn(`Skipping expected signature file for ${downloadedArtifact}: ${err.message}`);
signatureFile = undefined;
}

Expand Down