This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to branch feature/SLING-11671 in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git
commit 742ed6706b119c6dd058387612f8b620e3a09e40 Author: Robert Munteanu <[email protected]> AuthorDate: Fri Nov 11 15:03:52 2022 +0100 SLING-11671 - Jenkins: allow running Sling Starter ITs with a given module based on the Sling module descriptor POC for running Starter ITs as individual stages --- vars/slingOsgiBundleBuild.groovy | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy index 2754d16..f6571a5 100644 --- a/vars/slingOsgiBundleBuild.groovy +++ b/vars/slingOsgiBundleBuild.groovy @@ -23,6 +23,7 @@ def call(Map params = [:]) { rebuildFrequency: '@weekly', enabled: true, emailRecipients: [], + starterITExecutions: [], sonarQubeEnabled: true, sonarQubeUseAdditionalMavenParams: true, sonarQubeAdditionalParams: '' @@ -118,6 +119,26 @@ def call(Map params = [:]) { // execute the actual Maven builds parallel stepsMap + starterITExecutions.each { starterVersion, starterITExecution -> + starterITExecution.jdks.each { + jdkVersion -> { + stage("Starter ITs (Starter ${starterVersion}, Java ${jdkVersion}") { + checkout scm + withMaven(maven: globalConfig.mvnVersion, + jdk: jenkinsJdkLabel(referenceJdkVersion, globalConfig), + publisherStrategy: 'EXPLICIT') { + String mvnCommand = "mvn -U -B -e clean compile ${additionalMavenParams(jobConfig)}" + if (isUnix()) { + sh mvnCommand + } else { + bat mvnCommand + } + } + } + } + } + } + // last stage is deploy def goal = jobConfig.mavenGoal ?: "deploy" if ( goal == "deploy" && shouldDeploy ) {
