Skip to content

Commit

Permalink
contrib/intel/jenkins: Update target on weekly
Browse files Browse the repository at this point in the history
Since weekly jobs aren't PR's the target needs to be manually
set.

Signed-off-by: Zach Dworkin <[email protected]>
  • Loading branch information
zachdworkin committed Dec 6, 2024
1 parent 3af2e7c commit 3dc7bfb
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions contrib/intel/jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -386,11 +395,6 @@ pipeline {
steps {
script {
git_diffs()
if (env.WEEKLY == null) {
weekly = false
} else {
weekly = env.WEEKLY.toBoolean()
}
if (weekly) {
TIMEOUT="21600"
}
Expand Down

0 comments on commit 3dc7bfb

Please sign in to comment.