From 3dc7bfbf35242d2027bd77043136a0817ed6c309 Mon Sep 17 00:00:00 2001 From: Zach Dworkin Date: Wed, 27 Nov 2024 14:22:30 -0800 Subject: [PATCH] contrib/intel/jenkins: Update target on weekly Since weekly jobs aren't PR's the target needs to be manually set. Signed-off-by: Zach Dworkin --- contrib/intel/jenkins/Jenkinsfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/contrib/intel/jenkins/Jenkinsfile b/contrib/intel/jenkins/Jenkinsfile index 95fdcc9ba71..b4a1d141560 100644 --- a/contrib/intel/jenkins/Jenkinsfile +++ b/contrib/intel/jenkins/Jenkinsfile @@ -7,6 +7,7 @@ properties([disableConcurrentBuilds(abortPrevious: true)]) @Field def BUILD_MODES=["reg", "dbg", "dl"] @Field def PYTHON_VERSION="3.9" @Field def TIMEOUT="7200" +@Field def weekly=false def run_python(version, command, output=null) { if (output != null) @@ -272,9 +273,17 @@ def bootstrap_ci() { } def checkout_tar(name) { + if (env.WEEKLY == null) { + weekly = false + } else { + weekly = env.WEEKLY.toBoolean() + } dir ("${env.CUSTOM_WORKSPACE}/${name}/libfabric") { checkout scm TARGET=check_target() + if (weekly) { + TARGET=env.WEEKLY_TARGET + } sh """ git remote add upstream ${env.UPSTREAM} git pull --rebase upstream ${TARGET} @@ -386,11 +395,6 @@ pipeline { steps { script { git_diffs() - if (env.WEEKLY == null) { - weekly = false - } else { - weekly = env.WEEKLY.toBoolean() - } if (weekly) { TIMEOUT="21600" }