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

fix Jenkinsfile Server stage

parent 92ccb5a8
No related branches found
No related tags found
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,6 +94,7 @@ pipeline { ...@@ -97,6 +94,7 @@ 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"
if (isMasterBranch()) {
try { try {
dir('alfa-service'){ dir('alfa-service'){
withSonarQubeEnv('sonarqube-ozg-sh'){ withSonarQubeEnv('sonarqube-ozg-sh'){
...@@ -115,6 +113,7 @@ pipeline { ...@@ -115,6 +113,7 @@ pipeline {
} }
} }
} }
}
post { post {
always{ always{
junit testResults: '**/target/surefire-reports/*.xml', skipPublishingChecks: true junit testResults: '**/target/surefire-reports/*.xml', skipPublishingChecks: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment