From 7feb0d3116217ec9cf65db17f313883a94770456 Mon Sep 17 00:00:00 2001 From: James Foucar Date: Fri, 12 May 2017 12:19:29 -0600 Subject: [PATCH] Fix jenkins_generic_job when user selects specific machines. Need to make sure wait_for_tests is aware of the custom machine so that batch submission goes to correct machine. [BFB] --- scripts/lib/jenkins_generic_job.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/lib/jenkins_generic_job.py b/scripts/lib/jenkins_generic_job.py index 64fa1daeccf..9d412781048 100644 --- a/scripts/lib/jenkins_generic_job.py +++ b/scripts/lib/jenkins_generic_job.py @@ -143,6 +143,7 @@ def jenkins_generic_job(generate_baselines, submit_to_cdash, no_batch, else: cdash_build_name = None + os.environ["CIME_MACHINE"] = machine.get_machine_name() tests_passed = CIME.wait_for_tests.wait_for_tests(glob.glob("%s/*%s/TestStatus" % (test_root, test_id)), no_wait=not use_batch, # wait if using queue check_throughput=False, # don't check throughput