This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git
The following commit(s) were added to refs/heads/master by this push:
new ea18d6b SLING-12797 - Make default build timeout for jenkins jobs
configurable. (#22)
ea18d6b is described below
commit ea18d6b6941c9cb1a18f6b8c64e729b7948be8ea
Author: ionutzpi <[email protected]>
AuthorDate: Fri May 23 10:43:06 2025 +0300
SLING-12797 - Make default build timeout for jenkins jobs configurable.
(#22)
---
vars/slingOsgiBundleBuild.groovy | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy
index c92eace..1fda4dc 100644
--- a/vars/slingOsgiBundleBuild.groovy
+++ b/vars/slingOsgiBundleBuild.groovy
@@ -27,7 +27,8 @@ def call(Map params = [:]) {
emailRecipients: [],
sonarQubeEnabled: true,
sonarQubeUseAdditionalMavenParams: true,
- sonarQubeAdditionalParams: ''
+ sonarQubeAdditionalParams: '',
+ buildTimeout: 30 // default timeout in minutes
]
boolean shouldDeploy = false
node(globalConfig.mainNodeLabel) {
@@ -222,7 +223,7 @@ def defineStage(def globalConfig, def jobConfig, def
jdkVersion, def operatingSy
return {
node(jenkinsNodeLabel) {
dir(jenkinsJdkLabel) { // isolate parallel builds on same node
- timeout(time: 30, unit: 'MINUTES') {
+ timeout(time: jobConfig.buildTimeout, unit: 'MINUTES') {
checkout scm
stage("Maven Build (Java ${jdkVersion}, ${goal})") {
echo "Running on node ${env.NODE_NAME}"