@@ -216,6 +216,14 @@ functions:
216
216
${PREPARE_SHELL}
217
217
AUTH=${AUTH} SSL=${SSL} MONGODB_URI="${MONGODB_URI}" TOPOLOGY=${TOPOLOGY} JDK="${JDK}" .evergreen/run-tests.sh
218
218
219
+ " publish snapshot " :
220
+ - command : shell.exec
221
+ type : test
222
+ params :
223
+ working_dir : " src"
224
+ script : |
225
+ PROJECT_DIRECTORY=${PROJECT_DIRECTORY} NEXUS_USER=${sonatype_username} NEXUS_PWD=${sonatype_password} SIGNING_PWD=${signing_password} SIGNING_KEY_ID=${signing_keyId} RING_FILE_GPG_BASE64=${ring_file_gpg_base64} .evergreen/publish.sh
226
+
219
227
" cleanup " :
220
228
- command : shell.exec
221
229
params :
@@ -310,6 +318,13 @@ tasks:
310
318
- func : " bootstrap mongo-orchestration"
311
319
- func : " run tests"
312
320
321
+ - name : publish-snapshot
322
+ depends_on :
323
+ - variant : " .tests-variant"
324
+ name : " test"
325
+ commands :
326
+ - func : " publish snapshot"
327
+
313
328
axes :
314
329
- id : version
315
330
display_name : MongoDB Version
@@ -408,12 +423,21 @@ buildvariants:
408
423
matrix_spec : { auth: "*", ssl: "*", jdk: "jdk6", version: "*", topology: "*", os: "*" }
409
424
exclude_spec : { version: "2.4", ssl: "ssl", jdk: "*", auth: "*", topology: "*", os: "*" }
410
425
display_name : " ${version} ${topology} ${auth} ${ssl} ${jdk} ${os} "
426
+ tags : ["tests-variant"]
411
427
tasks :
412
428
- name : " test"
413
429
414
430
- matrix_name : " tests-jdk-other"
415
431
matrix_spec : { auth: "*", ssl: "*", jdk: "*", version: "3.4", topology: "standalone", os: "rhel62" }
416
432
exclude_spec : { jdk: "jdk6", auth: "*", ssl: "*", version: "*", topology: "*", os: "*" }
417
433
display_name : " ${version} ${topology} ${auth} ${ssl} ${jdk} ${os} "
434
+ tags : ["tests-variant"]
418
435
tasks :
419
436
- name : " test"
437
+
438
+ - name : publish-snapshot
439
+ display_name : " Publish Snapshot"
440
+ run_on :
441
+ - rhel62-test
442
+ tasks :
443
+ - name : " publish-snapshot"
0 commit comments