Skip to content
Snippets Groups Projects
Commit 3d9bf3a1 authored by Martin's avatar Martin
Browse files

OZG-7324 adjust branch name: master -> main

parent 2cbd994a
Branches
Tags
No related merge requests found
...@@ -67,7 +67,7 @@ pipeline { ...@@ -67,7 +67,7 @@ pipeline {
when { when {
not { not {
anyOf { anyOf {
branch 'master' branch 'main'
branch 'release' branch 'release'
} }
} }
...@@ -94,7 +94,7 @@ pipeline { ...@@ -94,7 +94,7 @@ pipeline {
sh 'mvn --no-transfer-progress -s $MAVEN_SETTINGS -P ci-build clean install -Dmaven.wagon.http.retryHandler.count=3' sh 'mvn --no-transfer-progress -s $MAVEN_SETTINGS -P ci-build clean install -Dmaven.wagon.http.retryHandler.count=3'
script { script {
if (env.BRANCH_NAME == 'master') { if (isMainBranch()) {
withSonarQubeEnv('sonarqube-ozg-sh'){ withSonarQubeEnv('sonarqube-ozg-sh'){
sh 'mvn -s $MAVEN_SETTINGS sonar:sonar' sh 'mvn -s $MAVEN_SETTINGS sonar:sonar'
} }
...@@ -143,7 +143,7 @@ pipeline { ...@@ -143,7 +143,7 @@ pipeline {
// stage('Deploy FormCycle Plugin to FC-server') { // stage('Deploy FormCycle Plugin to FC-server') {
// when { // when {
// anyOf { // anyOf {
// branch 'master' // branch 'main'
// } // }
// } // }
// //
...@@ -226,3 +226,7 @@ String getPomVersion(String pomFile){ ...@@ -226,3 +226,7 @@ String getPomVersion(String pomFile){
return pom.version return pom.version
} }
Boolean isMainBranch() {
return env.BRANCH_NAME == 'main'
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment