Skip to content
Snippets Groups Projects
Commit 81b88a92 authored by OZGCloud's avatar OZGCloud
Browse files

adjust Jenkinsfile

parent 9a52282b
Branches
Tags
No related merge requests found
...@@ -59,7 +59,7 @@ pipeline { ...@@ -59,7 +59,7 @@ pipeline {
stage('Deploy to Nexus'){ stage('Deploy to Nexus'){
when { when {
anyOf { anyOf {
branch 'main' branch 'master'
branch 'release' branch 'release'
} }
} }
...@@ -92,7 +92,7 @@ pipeline { ...@@ -92,7 +92,7 @@ pipeline {
stage('Sonar Checks') { stage('Sonar Checks') {
when { when {
branch 'main' branch 'master'
} }
steps { steps {
script { script {
...@@ -130,7 +130,7 @@ pipeline { ...@@ -130,7 +130,7 @@ pipeline {
} }
failure { failure {
script { script {
if (env.BRANCH_NAME == 'main' || env.BRANCH_NAME == 'release') { if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'release') {
sendFailureMessage() sendFailureMessage()
} }
} }
...@@ -159,7 +159,7 @@ Void sendFailureMessage() { ...@@ -159,7 +159,7 @@ Void sendFailureMessage() {
"formatted_body":"NachrichtenManager: Build Failed. Stage: ${FAILED_STAGE} Build-ID: <a "formatted_body":"NachrichtenManager: Build Failed. Stage: ${FAILED_STAGE} Build-ID: <a
href='${BLUE_OCEAN_URL}'>${env.BUILD_NUMBER}</a>"}""" href='${BLUE_OCEAN_URL}'>${env.BUILD_NUMBER}</a>"}"""
if (env.BRANCH_NAME == 'main') { if (env.BRANCH_NAME == 'master') {
room = "!iQPAvQIiRwRpNOszjw:matrix.ozg-sh.de" room = "!iQPAvQIiRwRpNOszjw:matrix.ozg-sh.de"
} }
else if (env.BRANCH_NAME == 'release') { else if (env.BRANCH_NAME == 'release') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment