Skip to content

Commit

Permalink
Update Jenkinsfile for Github Organization Folder (#385)
Browse files Browse the repository at this point in the history
* Update Jenkinsfile

* Update Jenkinsfile

* Update Jenkinsfile

* Update Jenkinsfile

* Update Jenkinsfile
  • Loading branch information
patricktnast authored Dec 24, 2024
1 parent 280a90e commit 19d920e
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,23 @@ def githubUsernameToSlackName(github_author) {
}

pipeline_name="vivarium_inputs"
conda_env_name="${pipeline_name}-${BUILD_NUMBER}"
conda_env_name="${pipeline_name}-${BRANCH_NAME}-${BUILD_NUMBER}"
conda_env_path="/tmp/${conda_env_name}"
// 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) * * *' : ''
// 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"


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" }
triggers {
cron(CRON_SETTINGS)
}

options {
// Keep 100 old builds.
Expand Down Expand Up @@ -75,7 +81,8 @@ pipeline {
// customWorkspace setting must be ran within a node
agent {
node {
label "svc-simsci"
// Run child tasks on slurm node.
label "slurm"
}
}
axes {
Expand Down Expand Up @@ -251,4 +258,4 @@ pipeline {
} // Python matrix bracket
} // Python matrix stage bracket
} // stages bracket
}
}

0 comments on commit 19d920e

Please sign in to comment.