Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
patricktnast authored Dec 23, 2024
1 parent ffd9327 commit c2eef64
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ conda_env_path="/tmp/${conda_env_name}"
// defaults for conda and pip are a local directory /svc-simsci for improved speed.
// In the past, we used /ihme/code/* on the NFS (which is slower)
shared_path="/svc-simsci"

// comma separated string list of branches to run periodic builds on
scheduled_branches = "main"
CRON_SETTINGS = scheduled_branches.split(',').collect{it.trim()}.contains(BRANCH_NAME) ? 'H H(20-23) * * *' : ''

pipeline {
// This agent runs as svc-simsci on node simsci-slurm-sbuild-p01.
// This agent runs as svc-simsci on node simsci-ci-coordinator-01.
// It has access to standard IHME filesystems and singularity
agent { label "svc-simsci" }
agent { label "coordinator" }

options {
// Keep 100 old builds.
Expand Down Expand Up @@ -57,7 +59,9 @@ pipeline {
description: "Used as needed for debugging purposes."
)
}

triggers {
cron(CRON_SETTINGS)
}
stages {
stage("Initialization") {
steps {
Expand All @@ -75,7 +79,8 @@ pipeline {
// customWorkspace setting must be ran within a node
agent {
node {
label "svc-simsci"
// Run child tasks on simsci-jenkinsagent-ci-p01.
label "matrix-tasks"
}
}
axes {
Expand Down

0 comments on commit c2eef64

Please sign in to comment.