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 {
when {
not {
anyOf {
branch 'master'
branch 'main'
branch 'release'
}
}
......@@ -94,7 +94,7 @@ pipeline {
sh 'mvn --no-transfer-progress -s $MAVEN_SETTINGS -P ci-build clean install -Dmaven.wagon.http.retryHandler.count=3'
script {
if (env.BRANCH_NAME == 'master') {
if (isMainBranch()) {
withSonarQubeEnv('sonarqube-ozg-sh'){
sh 'mvn -s $MAVEN_SETTINGS sonar:sonar'
}
......@@ -143,7 +143,7 @@ pipeline {
// stage('Deploy FormCycle Plugin to FC-server') {
// when {
// anyOf {
// branch 'master'
// branch 'main'
// }
// }
//
......@@ -225,4 +225,8 @@ String getPomVersion(String pomFile){
def pom = readMavenPom file: pomFile
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