@@ -33,11 +33,13 @@ variables:
33
33
EVERGREEN_IS_PATCH : ${is_patch}
34
34
EVERGREEN_PROJECT : ${project}
35
35
EVERGREEN_REVISION : ${revision}
36
+ EVERGREEN_REVISION_ORDER_ID : ${revision_order_id}
36
37
EVERGREEN_TASK_ID : ${task_id}
37
38
EVERGREEN_TASK_NAME : ${task_name}
38
39
EVERGREEN_TASK_URL : https://evergreen.mongodb.com/task/${task_id}
39
40
EVERGREEN_VERSION_ID : ${version_id}
40
41
EVERGREEN_WORKDIR : ${workdir}
42
+ EVERGREEN_CREATED_AT : ${created_at}
41
43
# WARN: This version is behind our electron runtime, but updating it will
42
44
# drop support for some older linux platforms, so we are keeping them out of
43
45
# sync for now
@@ -301,9 +303,6 @@ functions:
301
303
set -e
302
304
# Load environment variables
303
305
eval $(.evergreen/print-compass-env.sh)
304
-
305
- echo "Synchronizing evergreen environment from Compass build tools..."
306
-
307
306
# Generates and expansion file with build target metadata in packages/compass/expansions.yml
308
307
npm run --workspace mongodb-compass build-info -- ${target_platform} ${target_arch} --format=yaml --flatten ${compass_distribution} --out expansions.yml
309
308
- command : expansions.update
@@ -378,13 +377,14 @@ functions:
378
377
379
378
# Write the host info so that it can be used by the signing tool
380
379
if [[ $OSTYPE == "cygwin" ]]; then
381
- identity_file =$(cygpath -wa "$identity_file")
380
+ identity_file_ospath =$(cygpath -wa "$identity_file")
382
381
else
383
- identity_file =$(eval echo "$identity_file")
382
+ identity_file_ospath =$(eval echo "$identity_file")
384
383
fi
385
384
cat <<EOL > signing_host_info.yml
386
385
SIGNING_SERVER_HOSTNAME: $hostname
387
- SIGNING_SERVER_PRIVATE_KEY: $identity_file
386
+ SIGNING_SERVER_PRIVATE_KEY: $identity_file_ospath
387
+ SIGNING_SERVER_PRIVATE_KEY_CYGPATH: $identity_file
388
388
SIGNING_SERVER_USERNAME: $user
389
389
SIGNING_SERVER_PORT: 22
390
390
EOL
@@ -405,13 +405,30 @@ functions:
405
405
COMPASS_DISTRIBUTION : ${compass_distribution}
406
406
SIGNING_SERVER_HOSTNAME : ${SIGNING_SERVER_HOSTNAME}
407
407
SIGNING_SERVER_PRIVATE_KEY : ${SIGNING_SERVER_PRIVATE_KEY}
408
+ SIGNING_SERVER_PRIVATE_KEY_CYGPATH : ${SIGNING_SERVER_PRIVATE_KEY_CYGPATH}
408
409
SIGNING_SERVER_USERNAME : ${SIGNING_SERVER_USERNAME}
409
410
SIGNING_SERVER_PORT : ${SIGNING_SERVER_PORT}
410
411
script : |
411
412
set -e
412
-
413
+ # Load environment variables
413
414
eval $(.evergreen/print-compass-env.sh)
414
415
.evergreen/compass_package.sh
416
+ - command : shell.exec
417
+ params :
418
+ working_dir : src
419
+ shell : bash
420
+ env :
421
+ ARTIFACTORY_USERNAME : ${artifactory_username}
422
+ ARTIFACTORY_PASSWORD : ${artifactory_password}
423
+ SIGNING_SERVER_HOSTNAME : ${SIGNING_SERVER_HOSTNAME}
424
+ SIGNING_SERVER_PRIVATE_KEY : ${SIGNING_SERVER_PRIVATE_KEY}
425
+ SIGNING_SERVER_PRIVATE_KEY_CYGPATH : ${SIGNING_SERVER_PRIVATE_KEY_CYGPATH}
426
+ SIGNING_SERVER_USERNAME : ${SIGNING_SERVER_USERNAME}
427
+ SIGNING_SERVER_PORT : ${SIGNING_SERVER_PORT}
428
+ script : |
429
+ set -e
430
+
431
+ .evergreen/create-sbom.sh
415
432
416
433
publish :
417
434
- command : shell.exec
@@ -424,12 +441,28 @@ functions:
424
441
set -e
425
442
# Load environment variables
426
443
eval $(.evergreen/print-compass-env.sh)
427
- if [[ "${project}" == "10gen-compass-main" ]]; then
428
- export npm_config_dry_run=true
429
- fi
430
444
echo "Uploading release assets to S3 and GitHub if needed..."
431
445
npm run --workspace mongodb-compass upload
432
446
447
+ publish-dev-release-info :
448
+ - command : shell.exec
449
+ params :
450
+ working_dir : src
451
+ shell : bash
452
+ env :
453
+ << : *compass-env
454
+ script : |
455
+ eval $(.evergreen/print-compass-env.sh)
456
+ .evergreen/build-dev-release-info.sh release.json
457
+ - command : s3.put
458
+ params :
459
+ << : *save-artifact-params-public
460
+ local_file : src/release.json
461
+ remote_file : ${project}/compass/dev/release.json
462
+ content_type : application/json
463
+ display_name : release.json
464
+ optional : true
465
+
433
466
get-packaged-app :
434
467
- command : s3.get
435
468
params :
@@ -738,6 +771,20 @@ functions:
738
771
remote_file : ${project}/${revision}_${revision_order_id}/${linux_tar_sign_filename}
739
772
content_type : application/pgp-signature
740
773
optional : true
774
+ - command : s3.put
775
+ params :
776
+ << : *save-artifact-params-public
777
+ local_file : src/.sbom/purls.txt
778
+ remote_file : ${project}/${revision}_${revision_order_id}/${task_id}/purls.txt
779
+ content_type : text/plain
780
+ optional : true
781
+ - command : s3.put
782
+ params :
783
+ << : *save-artifact-params-public
784
+ local_file : src/.sbom/sbom.json
785
+ remote_file : ${project}/${revision}_${revision_order_id}/${task_id}/sbom.json
786
+ content_type : application/json
787
+ optional : true
741
788
742
789
get-all-artifacts :
743
790
- command : shell.exec
0 commit comments