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

acosentino pushed a commit to branch camel-4.8.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.8.x by this push:
     new 9a532ea1c79 CAMEL-21647 - Create a jenkins job for Camel JBang IT test 
suite
9a532ea1c79 is described below

commit 9a532ea1c79548a270ffb01a495808a811eeffb1
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Tue Feb 4 11:04:05 2025 +0100

    CAMEL-21647 - Create a jenkins job for Camel JBang IT test suite
    
    Signed-off-by: Andrea Cosentino <anco...@gmail.com>
---
 Jenkinsfile.jbangtest | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/Jenkinsfile.jbangtest b/Jenkinsfile.jbangtest
index d2180792d70..d372fb5a1ad 100644
--- a/Jenkinsfile.jbangtest
+++ b/Jenkinsfile.jbangtest
@@ -19,6 +19,9 @@ def JDK_NAME = env.JDK_NAME ?: 'jdk_17_latest'
 
 def MAVEN_PARAMS = "-U -B -e -fae -V -Dnoassembly -Dmaven.compiler.fork=true "
 
+String sharedDataFolder = "/tmp/data-" + 
UUID.randomUUID().toString().substring(0,5)
+String localMavenRepo = "/tmp/mvn-" + 
UUID.randomUUID().toString().substring(0,5)
+
 pipeline {
 
     agent {
@@ -64,8 +67,20 @@ pipeline {
             }
             steps {
                 sh "./mvnw $MAVEN_PARAMS -Pdeploy,apache-snapshots -Dquickly 
clean"
-                sh "./mvnw $MAVEN_PARAMS -f 
dsl/camel-jbang/camel-jbang-it/pom.xml -Pjbang-it-test"
+                sh(script: """
+                       mkdir -p ${sharedDataFolder}
+                       chmod 777 -R ${sharedDataFolder}
+                       mkdir -p ${localMavenRepo}
+                        chmod 777 -R ${localMavenRepo}
+               """)
+                sh "./mvnw $MAVEN_PARAMS -f 
dsl/camel-jbang/camel-jbang-it/pom.xml 
-Dshared.maven.local.repo=${localMavenRepo} -Pjbang-it-test"
             }
+            post {
+               always {
+                   junit allowEmptyResults: true, testResults: 
'**/target/surefire-reports/*.xml', skipPublishingChecks: true
+                   junit allowEmptyResults: true, testResults: 
'**/target/failsafe-reports/*.xml', skipPublishingChecks: true
+                       }
+                 }
         }  
 
     }

Reply via email to