You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2022/11/11 14:04:59 UTC

[sling-tooling-jenkins] branch feature/SLING-11671 created (now 742ed67)

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a change to branch feature/SLING-11671
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git


      at 742ed67  SLING-11671 - Jenkins: allow running Sling Starter ITs with a given module based on the Sling module descriptor

This branch includes the following new commits:

     new 742ed67  SLING-11671 - Jenkins: allow running Sling Starter ITs with a given module based on the Sling module descriptor

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[sling-tooling-jenkins] 01/01: SLING-11671 - Jenkins: allow running Sling Starter ITs with a given module based on the Sling module descriptor

Posted by ro...@apache.org.
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 <ro...@apache.org>
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 ) {