11# Variables for common functions.
22#
3- # upload_file: Saves a file to the Evergreen S3 bucket.
4- # upload_download_center: Upload a file to the download center S3 bucket.
53# compile_and_release: Runs the exec compile and release process.
64variables :
7- - &upload_file
8- command : s3.put
9- params :
10- aws_key : ${aws_key}
11- aws_secret : ${aws_secret}
12- bucket : mciuploads
13- permissions : public-read
14- content_type : application/octet-stream
15- - &upload_download_center
16- command : s3.put
17- params :
18- aws_key : ${download_center_aws_key}
19- aws_secret : ${download_center_aws_secret}
20- bucket : info-mongodb-com
21- permissions : public-read
22- content_type : application/octet-stream
235 - &compile_and_release
246 command : shell.exec
257 params :
@@ -29,6 +11,8 @@ variables:
2911 source .evergreen/.setup_env
3012 export SEGMENT_API_KEY=${segment_key}
3113 export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
14+ export PROJECT=${project}
15+ export REVISION=${revision}
3216 export AWS_KEY=${aws_key}
3317 export AWS_SECRET=${aws_secret}
3418 export DOWNLOAD_CENTER_AWS_KEY=${download_center_aws_key}
@@ -100,16 +84,6 @@ functions:
10084 shell : bash
10185 script : |
10286 echo "################# Sign, notarise, and release MacOS artifacts ################"
103- - << : *upload_file
104- params :
105- local_files_include_filter :
106- - src/dist/*.*
107- remote_file : ${project}/${revision}/
108- - << : *upload_download_center
109- params :
110- local_files_include_filter :
111- - src/dist/mongosh.json
112- remote_file : com-download-center/
11387 release_linux :
11488 - << : *compile_and_release
11589 - command : shell.exec
@@ -118,11 +92,6 @@ functions:
11892 shell : bash
11993 script : |
12094 echo "################# Sign and release Linux artifacts ################"
121- - << : *upload_file
122- params :
123- local_files_include_filter :
124- - src/dist/*.*
125- remote_file : ${project}/${revision}/
12695 release_win :
12796 - << : *compile_and_release
12897 - command : shell.exec
@@ -132,11 +101,6 @@ functions:
132101 script : |
133102 echo "################# Sign and release Windows artifacts ################"
134103 ls -la dist/
135- - << : *upload_file
136- params :
137- local_files_include_filter :
138- - src/dist/*.*
139- remote_file : ${project}/${revision}/
140104# Tasks will show up as the individual blocks in the Evergreen UI that can
141105# pass or fail.
142106#
0 commit comments