Skip to content

Commit

Permalink
Move NJobs to buildenv
Browse files Browse the repository at this point in the history
  • Loading branch information
roceb committed Sep 20, 2024
1 parent e7e3805 commit f2bd327
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pipelines/lib/util.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ def void buildImage(Map p) {
opt << '--build-arg D_GROUP="$(id -gn)"'
opt << '--build-arg D_GID="$(id -g)"'
opt << '--build-arg D_HOME="$HOME"'
opt << '--build-arg EUPSPKG_NJOBS="$K8S_DIND_LIMITS_CPU"'
opt << '--load'
opt << '.'

Expand Down Expand Up @@ -459,10 +458,14 @@ def void jenkinsWrapper(Map buildParams) {
touch lsstsw/miniconda/conda-meta/history
'''

// This line uses k8s to set EUPSPKG_NJOBS
def njobs = System.getenv("K8S_DIND_LIMITS_CPU")

def buildEnv = [
"WORKSPACE=${cwd}",
"HOME=${homeDir}",
"EUPS_USERDATA=${homeDir}/.eups_userdata",
"EUPSPKG_NJOBS=${njobs}"
]

// Map -> List
Expand Down

0 comments on commit f2bd327

Please sign in to comment.