Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

How to customize PARALLEL_BUILDS #5

Description

@khilman

I tried the change below, and added a PARALLEL_BUILDS=20 to my .env but it doesn't seem to have any effect on the kernel-build default jobs parameters.

diff --git a/config/jobs.groovy b/config/jobs.groovy
index ac31c2ddc915..d2c5fbaeb0b5 100644
--- a/config/jobs.groovy
+++ b/config/jobs.groovy
@@ -6,6 +6,7 @@ def DOCKER_BASE = System.getenv("DOCKER_BASE")
 def CONFIG_LIST = System.getenv("CONFIG_LIST")
 def KCI_LABS_LIST = System.getenv("KCI_LABS_LIST")
 def KCI_CALLBACK_ID = System.getenv("KCI_CALLBACK_ID")
+def PARALLEL_BUILDS = System.getenv("PARALLEL_BUILDS")
 
 pipelineJob('kernel-tree-monitor') {
   definition {
@@ -111,7 +112,7 @@ pipelineJob('kernel-build') {
     stringParam('KCI_TOKEN_ID', 'api-token', 'Identifier of the KernelCI backend API token stored in Jenkins.')
     stringParam('KCI_CORE_URL', KCI_CORE_URL, 'URL of the kernelci-core repository.')
     stringParam('KCI_CORE_BRANCH', KCI_CORE_BRANCH, 'Name of the branch to use in the kernelci-core repository.')
-    stringParam('PARALLEL_BUILDS', '4', 'Number of kernel builds to run in parallel')
+    stringParam('PARALLEL_BUILDS', PARALLEL_BUILDS, 'Number of kernel builds to run in parallel')
     stringParam('DOCKER_BASE', DOCKER_BASE, 'Dockerhub base address used for the build images.')
   }
 }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions