1
1
# Variables for common functions.
2
2
#
3
- # upload_file: Saves a file to the Evergreen S3 bucket.
4
- # upload_download_center: Upload a file to the download center S3 bucket.
5
3
# compile_and_release: Runs the exec compile and release process.
6
4
variables :
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
23
5
- &compile_and_release
24
6
command : shell.exec
25
7
params :
@@ -29,6 +11,8 @@ variables:
29
11
source .evergreen/.setup_env
30
12
export SEGMENT_API_KEY=${segment_key}
31
13
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
14
+ export PROJECT=${project}
15
+ export REVISION=${revision}
32
16
export AWS_KEY=${aws_key}
33
17
export AWS_SECRET=${aws_secret}
34
18
export DOWNLOAD_CENTER_AWS_KEY=${download_center_aws_key}
@@ -100,16 +84,6 @@ functions:
100
84
shell : bash
101
85
script : |
102
86
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/
113
87
release_linux :
114
88
- << : *compile_and_release
115
89
- command : shell.exec
@@ -118,11 +92,6 @@ functions:
118
92
shell : bash
119
93
script : |
120
94
echo "################# Sign and release Linux artifacts ################"
121
- - << : *upload_file
122
- params :
123
- local_files_include_filter :
124
- - src/dist/*.*
125
- remote_file : ${project}/${revision}/
126
95
release_win :
127
96
- << : *compile_and_release
128
97
- command : shell.exec
@@ -132,11 +101,6 @@ functions:
132
101
script : |
133
102
echo "################# Sign and release Windows artifacts ################"
134
103
ls -la dist/
135
- - << : *upload_file
136
- params :
137
- local_files_include_filter :
138
- - src/dist/*.*
139
- remote_file : ${project}/${revision}/
140
104
# Tasks will show up as the individual blocks in the Evergreen UI that can
141
105
# pass or fail.
142
106
#
0 commit comments