@@ -33,11 +33,13 @@ variables:
3333 EVERGREEN_IS_PATCH : ${is_patch}
3434 EVERGREEN_PROJECT : ${project}
3535 EVERGREEN_REVISION : ${revision}
36+ EVERGREEN_REVISION_ORDER_ID : ${revision_order_id}
3637 EVERGREEN_TASK_ID : ${task_id}
3738 EVERGREEN_TASK_NAME : ${task_name}
3839 EVERGREEN_TASK_URL : https://evergreen.mongodb.com/task/${task_id}
3940 EVERGREEN_VERSION_ID : ${version_id}
4041 EVERGREEN_WORKDIR : ${workdir}
42+ EVERGREEN_CREATED_AT : ${created_at}
4143 # WARN: This version is behind our electron runtime, but updating it will
4244 # drop support for some older linux platforms, so we are keeping them out of
4345 # sync for now
@@ -301,9 +303,6 @@ functions:
301303 set -e
302304 # Load environment variables
303305 eval $(.evergreen/print-compass-env.sh)
304-
305- echo "Synchronizing evergreen environment from Compass build tools..."
306-
307306 # Generates and expansion file with build target metadata in packages/compass/expansions.yml
308307 npm run --workspace mongodb-compass build-info -- ${target_platform} ${target_arch} --format=yaml --flatten ${compass_distribution} --out expansions.yml
309308 - command : expansions.update
@@ -378,13 +377,14 @@ functions:
378377
379378 # Write the host info so that it can be used by the signing tool
380379 if [[ $OSTYPE == "cygwin" ]]; then
381- identity_file =$(cygpath -wa "$identity_file")
380+ identity_file_ospath =$(cygpath -wa "$identity_file")
382381 else
383- identity_file =$(eval echo "$identity_file")
382+ identity_file_ospath =$(eval echo "$identity_file")
384383 fi
385384 cat <<EOL > signing_host_info.yml
386385 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
388388 SIGNING_SERVER_USERNAME: $user
389389 SIGNING_SERVER_PORT: 22
390390 EOL
@@ -405,13 +405,30 @@ functions:
405405 COMPASS_DISTRIBUTION : ${compass_distribution}
406406 SIGNING_SERVER_HOSTNAME : ${SIGNING_SERVER_HOSTNAME}
407407 SIGNING_SERVER_PRIVATE_KEY : ${SIGNING_SERVER_PRIVATE_KEY}
408+ SIGNING_SERVER_PRIVATE_KEY_CYGPATH : ${SIGNING_SERVER_PRIVATE_KEY_CYGPATH}
408409 SIGNING_SERVER_USERNAME : ${SIGNING_SERVER_USERNAME}
409410 SIGNING_SERVER_PORT : ${SIGNING_SERVER_PORT}
410411 script : |
411412 set -e
412-
413+ # Load environment variables
413414 eval $(.evergreen/print-compass-env.sh)
414415 .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
415432
416433 publish :
417434 - command : shell.exec
@@ -424,12 +441,28 @@ functions:
424441 set -e
425442 # Load environment variables
426443 eval $(.evergreen/print-compass-env.sh)
427- if [[ "${project}" == "10gen-compass-main" ]]; then
428- export npm_config_dry_run=true
429- fi
430444 echo "Uploading release assets to S3 and GitHub if needed..."
431445 npm run --workspace mongodb-compass upload
432446
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+
433466 get-packaged-app :
434467 - command : s3.get
435468 params :
@@ -738,6 +771,20 @@ functions:
738771 remote_file : ${project}/${revision}_${revision_order_id}/${linux_tar_sign_filename}
739772 content_type : application/pgp-signature
740773 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
741788
742789 get-all-artifacts :
743790 - command : shell.exec
0 commit comments