From 266ef56ae5c1191b10ece28cce0c052a60e8f6d0 Mon Sep 17 00:00:00 2001 From: MihailInternul <157023284+MihailInternul@users.noreply.github.com> Date: Thu, 15 Feb 2024 16:08:40 +0200 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c41919d05..cad5e9797 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,7 +8,9 @@ pipeline { } steps { // Use Maven checkstyle plugin to generate a code style report - sh 'mvn checkstyle:checkstyle' + script { + sh 'M3/bin/mvn checkstyle:checkstyle' + } archiveArtifacts artifacts: '**/target/checkstyle-result.xml', fingerprint: true } } @@ -18,7 +20,9 @@ pipeline { } steps { // Run tests with Maven - sh 'mvn test' + script { + sh 'M3/bin/mvn test' + } } } stage('Build') { @@ -27,7 +31,9 @@ pipeline { } steps { // Build without tests with Maven - sh 'mvn clean package -DskipTests' + script { + sh 'M3/bin/mvn clean package -DskipTests' + } } } stage('Create Docker Image MR') {