Skip to content
Snippets Groups Projects
Commit 16458cdf authored by OZGCloud's avatar OZGCloud
Browse files

fix Jenkinsfile Server stage

parent 92ccb5a8
Branches
Tags
No related merge requests found
...@@ -85,9 +85,6 @@ pipeline { ...@@ -85,9 +85,6 @@ pipeline {
// } // }
} }
stage('Server') { stage('Server') {
when {
branch 'master'
}
steps { steps {
script { script {
FAILED_STAGE=env.STAGE_NAME FAILED_STAGE=env.STAGE_NAME
...@@ -97,21 +94,23 @@ pipeline { ...@@ -97,21 +94,23 @@ pipeline {
sh 'mvn --version' sh 'mvn --version'
sh "mvn -s $MAVEN_SETTINGS -pl -goofy-client clean install spring-boot:build-image -Dspring-boot.build-image.imageName=docker.ozg-sh.de/goofy:${IMAGE_TAG} -Dspring-boot.build-image.publish -Dmaven.wagon.http.retryHandler.count=3" sh "mvn -s $MAVEN_SETTINGS -pl -goofy-client clean install spring-boot:build-image -Dspring-boot.build-image.imageName=docker.ozg-sh.de/goofy:${IMAGE_TAG} -Dspring-boot.build-image.publish -Dmaven.wagon.http.retryHandler.count=3"
try { if (isMasterBranch()) {
dir('alfa-service'){ try {
withSonarQubeEnv('sonarqube-ozg-sh'){ dir('alfa-service'){
sh 'mvn -s $MAVEN_SETTINGS sonar:sonar' withSonarQubeEnv('sonarqube-ozg-sh'){
} sh 'mvn -s $MAVEN_SETTINGS sonar:sonar'
} }
dir('alfa-xdomea'){ }
withSonarQubeEnv('sonarqube-ozg-sh'){ dir('alfa-xdomea'){
sh 'mvn -s $MAVEN_SETTINGS sonar:sonar' withSonarQubeEnv('sonarqube-ozg-sh'){
} sh 'mvn -s $MAVEN_SETTINGS sonar:sonar'
} }
} }
catch (Exception e) { }
unstable("SonarQube failed") catch (Exception e) {
} unstable("SonarQube failed")
}
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment