From 6e603f4166e8ca791da519247bd76395b882051a Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Mon, 28 Oct 2024 20:06:10 -0400 Subject: [PATCH] jobs/test-override: respect env vars for stream This matches what we do in the pipeline. Motivated by wanting to get to the bottom of https://github.com/coreos/fedora-coreos-tracker/issues/1796, which happens often in the Bodhi tests. --- jobs/test-override.Jenkinsfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jobs/test-override.Jenkinsfile b/jobs/test-override.Jenkinsfile index 117f7f5..009e427 100644 --- a/jobs/test-override.Jenkinsfile +++ b/jobs/test-override.Jenkinsfile @@ -69,6 +69,9 @@ def cosa_img = params.COREOS_ASSEMBLER_IMAGE cosa_img = cosa_img ?: pipeutils.get_cosa_img(pipecfg, params.STREAM) def stream_info = pipecfg.streams[params.STREAM] +// Grab any environment variables we should set +def container_env = pipeutils.get_env_vars_for_stream(pipecfg, params.STREAM) + // Keep in sync with build.Jenkinsfile def cosa_memory_request_mb = 10.5 * 1024 as Integer def ncpus = ((cosa_memory_request_mb - 512) / 1536) as Integer @@ -77,6 +80,7 @@ currentBuild.description = "[${descPrefix}] Pending" cosaPod(image: cosa_img, cpu: "${ncpus}", memory: "${cosa_memory_request_mb}Mi", + env: container_env, serviceAccount: "jenkins") { timeout(time: 150, unit: 'MINUTES') { try {