From 7bdf8ab392ab6f6e7adeca4bab17132cf9bf4704 Mon Sep 17 00:00:00 2001 From: "aiyion.prime" Date: Sun, 30 Jun 2024 16:03:40 +0200 Subject: [PATCH] feat: Start using more than one thread while building --- Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f84b44b..83d3b65 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -76,7 +76,10 @@ pipeline { } steps { dir('gluon') { - sh "make -j1 V=s GLUON_TARGET=${params.GLUON_TARGET}" + def nproc_str = sh "nproc" + def nproc = nproc_str as Integer + def nproc_plus_one = nproc+1 + sh "make -j${nproc_plus_one} GLUON_TARGET=${params.GLUON_TARGET}" } } }