@@ -122,6 +122,22 @@ functions:
122122 script : |
123123 ${PREPARE_SHELL}
124124 sh ${DRIVERS_TOOLS}/.evergreen/stop-orchestration.sh
125+ " upload-mo-artifacts " :
126+ - command : shell.exec
127+ params :
128+ script : |
129+ ${PREPARE_SHELL}
130+ find $MONGO_ORCHESTRATION_HOME -name \*.log | xargs tar czf mongodb-logs.tar.gz
131+ - command : s3.put
132+ params :
133+ aws_key : ${aws_key}
134+ aws_secret : ${aws_secret}
135+ local_file : mongodb-logs.tar.gz
136+ remote_file : ${UPLOAD_BUCKET}/${build_variant}/${revision}/${version_id}/${build_id}/logs/${task_id}-${execution}-mongodb-logs.tar.gz
137+ bucket : mciuploads
138+ permissions : public-read
139+ content_type : ${content_type|application/x-gzip}
140+ display_name : " mongodb-logs.tar.gz"
125141
126142 " run tests " :
127143 - command : shell.exec
181197 - func : " install dependencies"
182198
183199post :
200+ - func : " stop mongo-orchestration"
201+ - func : " upload-mo-artifacts"
184202 - func : " cleanup"
185203
186204tasks :
@@ -194,7 +212,6 @@ tasks:
194212 MONGODB_VERSION : " 3.6"
195213 TOPOLOGY : " server"
196214 - func : " run tests"
197- - func : " stop mongo-orchestration"
198215
199216 - name : " test-3.6-replica_set"
200217 tags : ["3.6", "replica_set"]
@@ -206,7 +223,6 @@ tasks:
206223 MONGODB_VERSION : " 3.6"
207224 TOPOLOGY : " replica_set"
208225 - func : " run tests"
209- - func : " stop mongo-orchestration"
210226
211227 - name : " test-3.6-sharded_cluster"
212228 tags : ["3.6", "sharded_cluster"]
@@ -218,7 +234,6 @@ tasks:
218234 MONGODB_VERSION : " 3.6"
219235 TOPOLOGY : " sharded_cluster"
220236 - func : " run tests"
221- - func : " stop mongo-orchestration"
222237
223238 - name : " test-4.0-standalone"
224239 tags : ["4.0", "standalone"]
@@ -230,7 +245,6 @@ tasks:
230245 MONGODB_VERSION : " 4.0"
231246 TOPOLOGY : " server"
232247 - func : " run tests"
233- - func : " stop mongo-orchestration"
234248
235249 - name : " test-4.0-replica_set"
236250 tags : ["4.0", "replica_set"]
@@ -242,7 +256,6 @@ tasks:
242256 MONGODB_VERSION : " 4.0"
243257 TOPOLOGY : " replica_set"
244258 - func : " run tests"
245- - func : " stop mongo-orchestration"
246259
247260 - name : " test-4.0-sharded_cluster"
248261 tags : ["4.0", "sharded_cluster"]
@@ -254,7 +267,6 @@ tasks:
254267 MONGODB_VERSION : " 4.0"
255268 TOPOLOGY : " sharded_cluster"
256269 - func : " run tests"
257- - func : " stop mongo-orchestration"
258270
259271 - name : " test-4.2-standalone"
260272 tags : ["4.2", "standalone"]
@@ -266,7 +278,6 @@ tasks:
266278 MONGODB_VERSION : " 4.2"
267279 TOPOLOGY : " server"
268280 - func : " run tests"
269- - func : " stop mongo-orchestration"
270281
271282 - name : " test-4.2-replica_set"
272283 tags : ["4.2", "replica_set"]
@@ -278,7 +289,6 @@ tasks:
278289 MONGODB_VERSION : " 4.2"
279290 TOPOLOGY : " replica_set"
280291 - func : " run tests"
281- - func : " stop mongo-orchestration"
282292
283293 - name : " test-4.2-sharded_cluster"
284294 tags : ["4.2", "sharded_cluster"]
@@ -290,7 +300,6 @@ tasks:
290300 MONGODB_VERSION : " 4.2"
291301 TOPOLOGY : " sharded_cluster"
292302 - func : " run tests"
293- - func : " stop mongo-orchestration"
294303
295304 - name : " test-latest-standalone"
296305 tags : ["latest", "standalone"]
@@ -302,7 +311,6 @@ tasks:
302311 MONGODB_VERSION : " latest"
303312 TOPOLOGY : " server"
304313 - func : " run tests"
305- - func : " stop mongo-orchestration"
306314
307315 - name : " test-latest-replica_set"
308316 tags : ["latest", "replica_set"]
@@ -314,7 +322,6 @@ tasks:
314322 MONGODB_VERSION : " latest"
315323 TOPOLOGY : " replica_set"
316324 - func : " run tests"
317- - func : " stop mongo-orchestration"
318325
319326 - name : " test-latest-sharded_cluster"
320327 tags : ["latest", "sharded_cluster"]
@@ -326,7 +333,6 @@ tasks:
326333 MONGODB_VERSION : " latest"
327334 TOPOLOGY : " sharded_cluster"
328335 - func : " run tests"
329- - func : " stop mongo-orchestration"
330336
331337 - name : " test-atlas-connectivity"
332338 tags : ["atlas-connect"]
0 commit comments