From 81b88a92ba170644f26c26c389d79a4717fbf3d7 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Fri, 3 May 2024 10:15:16 +0200 Subject: [PATCH] adjust Jenkinsfile --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9a3d676..c998dde 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -59,7 +59,7 @@ pipeline { stage('Deploy to Nexus'){ when { anyOf { - branch 'main' + branch 'master' branch 'release' } } @@ -92,7 +92,7 @@ pipeline { stage('Sonar Checks') { when { - branch 'main' + branch 'master' } steps { script { @@ -130,7 +130,7 @@ pipeline { } failure { script { - if (env.BRANCH_NAME == 'main' || env.BRANCH_NAME == 'release') { + if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'release') { sendFailureMessage() } } @@ -159,7 +159,7 @@ Void sendFailureMessage() { "formatted_body":"NachrichtenManager: Build Failed. Stage: ${FAILED_STAGE} Build-ID: <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" } else if (env.BRANCH_NAME == 'release') { -- GitLab