1
0
forked from mirrors/0ad

Add JOBS support to Unix build pipelines

Allow the number of concurrent build jobs in Unix build pipelines be
specified in the environment via the JOBS variable.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser
2025-03-05 21:14:17 +01:00
parent df5fee6103
commit 2a0817d930
4 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -69,7 +69,7 @@ pipeline {
sh "git lfs pull -I binaries/data/tests"
sh "git lfs pull -I \"binaries/data/mods/_test.*\""
sh "libraries/build-source-libs.sh 2> ${JENKINS_COMPILER}-prebuild-errors.log"
sh "libraries/build-source-libs.sh ${JOBS} 2> ${JENKINS_COMPILER}-prebuild-errors.log"
sh "build/workspaces/update-workspaces.sh --jenkins-tests 2>> ${JENKINS_COMPILER}-prebuild-errors.log"
@@ -89,7 +89,7 @@ pipeline {
stage("Debug Build") {
steps {
sh "cd build/workspaces/gcc/ && make config=debug"
sh "cd build/workspaces/gcc/ && make ${JOBS} config=debug"
}
post {
failure {
@@ -115,7 +115,7 @@ pipeline {
stage("Release Build") {
steps {
sh "cd build/workspaces/gcc/ && make config=release"
sh "cd build/workspaces/gcc/ && make ${JOBS} config=release"
}
}