@@ -216,6 +216,14 @@ functions:
216216 ${PREPARE_SHELL}
217217 AUTH=${AUTH} SSL=${SSL} MONGODB_URI="${MONGODB_URI}" TOPOLOGY=${TOPOLOGY} JDK="${JDK}" .evergreen/run-tests.sh
218218
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+
219227 " cleanup " :
220228 - command : shell.exec
221229 params :
@@ -310,6 +318,13 @@ tasks:
310318 - func : " bootstrap mongo-orchestration"
311319 - func : " run tests"
312320
321+ - name : publish-snapshot
322+ depends_on :
323+ - variant : " .tests-variant"
324+ name : " test"
325+ commands :
326+ - func : " publish snapshot"
327+
313328axes :
314329 - id : version
315330 display_name : MongoDB Version
@@ -408,12 +423,21 @@ buildvariants:
408423 matrix_spec : { auth: "*", ssl: "*", jdk: "jdk6", version: "*", topology: "*", os: "*" }
409424 exclude_spec : { version: "2.4", ssl: "ssl", jdk: "*", auth: "*", topology: "*", os: "*" }
410425 display_name : " ${version} ${topology} ${auth} ${ssl} ${jdk} ${os} "
426+ tags : ["tests-variant"]
411427 tasks :
412428 - name : " test"
413429
414430- matrix_name : " tests-jdk-other"
415431 matrix_spec : { auth: "*", ssl: "*", jdk: "*", version: "3.4", topology: "standalone", os: "rhel62" }
416432 exclude_spec : { jdk: "jdk6", auth: "*", ssl: "*", version: "*", topology: "*", os: "*" }
417433 display_name : " ${version} ${topology} ${auth} ${ssl} ${jdk} ${os} "
434+ tags : ["tests-variant"]
418435 tasks :
419436 - 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