Skip to content

Commit 4e0a094

Browse files
authored
Update Jenkinsfile
1 parent b309862 commit 4e0a094

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Jenkinsfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ def githubUsernameToSlackName(github_author) {
1313
pipeline_name="vivarium"
1414
conda_env_name="${pipeline_name}-${BRANCH_NAME}-${BUILD_NUMBER}"
1515
conda_env_path="/tmp/${conda_env_name}"
16-
CRON_SETTINGS = BRANCH_NAME == "main" ? '''H H(20-23) * * *''' : ""
1716
// defaults for conda and pip are a local directory /svc-simsci for improved speed.
1817
// In the past, we used /ihme/code/* on the NFS (which is slower)
1918
shared_path="/svc-simsci"
20-
19+
// comma separated string list of branches to run periodic builds on
20+
scheduled_branches = "main"
21+
CRON_SETTINGS = scheduled_branches.split(',').collect{it.trim()}.contains(BRANCH_NAME) ? 'H H(20-23) * * *' : ''
2122

2223
pipeline {
23-
// This agent runs as svc-simsci on node jenkinsagent-ci-p02.
24+
// This agent runs as svc-simsci on node simsci-ci-coordinator-01.
2425
// It has access to standard IHME filesystems and singularity
2526
agent { label "coordinator" }
2627
triggers {
@@ -79,8 +80,8 @@ pipeline {
7980
// customWorkspace setting must be ran within a node
8081
agent {
8182
node {
82-
// Run child tasks on simsci-jenkinsagent-ci-p01 or simsci-jenkinsagent-ci-p02.
83-
label "jenkins-agent"
83+
// Run child tasks on simsci-jenkinsagent-ci-p01.
84+
label "matrix-tasks"
8485
}
8586
}
8687
axes {

0 commit comments

Comments
 (0)