From b88adc3a2eeddc6f75835cdcff5fc11a6d37fded Mon Sep 17 00:00:00 2001 From: "michael.breu" <michael.breu@uibk.ac.at> Date: Fri, 26 Feb 2021 18:00:45 +0100 Subject: [PATCH] Still Fixing --- Jenkinsfile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9c434401b..d6b2f81b5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,13 +9,30 @@ pipeline { tools { // Install the Maven version configured as "M3" and add it to the path. maven "/usr/share/maven" + jdk "java-11" } stages { stage('Compile') { steps { milestone 1 withSonarQubeEnv('SonarQube Production') { - sh "mvn -Dmaven.test.failure.ignore=true -Dsonar.projectName=GitSearch -Dsonar.projectKey=GITSEARCH clean test jacoco:report sonar:sonar" + sh "mvn " + } + } + } + stage('Test') { + steps { + milestone 1 + withSonarQubeEnv('SonarQube Production') { + sh "mvn -Dmaven.test.failure.ignore=true clean test" + } + } + } + stage('Evaluate') { + steps { + milestone 1 + withSonarQubeEnv('SonarQube Production') { + sh "mvn-Dsonar.projectName=GitSearch -Dsonar.projectKey=GITSEARCH jacoco:report sonar:sonar" } } } -- GitLab