This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new 82b975fddf2 CAMEL-21647 - Create a jenkins job for Camel JBang IT test suite 82b975fddf2 is described below commit 82b975fddf23f57828cc5bcaaa8bccc6078cd9f3 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Mon Feb 3 17:47:44 2025 +0100 CAMEL-21647 - Create a jenkins job for Camel JBang IT test suite Signed-off-by: Andrea Cosentino <anco...@gmail.com> --- Jenkinsfile.jbangtest | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile.jbangtest b/Jenkinsfile.jbangtest index d2180792d70..a90682e0de4 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 { @@ -63,9 +66,23 @@ 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 + } + } } }