From 5f7e35e4b361b8adaf98e1542a6515063ad028e0 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Sat, 30 Mar 2024 11:28:07 +0100 Subject: [PATCH] OZG-5220 build with java 21 --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 62026ae..01e1256 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ def FAILED_STAGE pipeline { agent { node { - label 'jenkins-build-agent' + label 'jenkins-build-agent-jdk21' } } @@ -26,14 +26,14 @@ pipeline { FAILED_STAGE = env.STAGE_NAME def rootPom = readMavenPom file: 'pom.xml' def rootVersion = rootPom.version - + if(env.BRANCH_NAME == 'release'){ if ( !(rootVersion ==~ RELEASE_REGEX)) { - error("Keine Release Version für Branch ${env.BRANCH_NAME}.") + error("Keine Release Version für Branch ${env.BRANCH_NAME}.") } } else { if ( !(rootVersion ==~ SNAPSHOT_REGEX)) { - error("Keine Snapshot Version für Branch ${env.BRANCH_NAME}.") + error("Keine Snapshot Version für Branch ${env.BRANCH_NAME}.") } } } @@ -83,7 +83,7 @@ Void sendFailureMessage() { "body":"api-lib: Build Failed. Stage: ${FAILED_STAGE} Build-ID: ${env.BUILD_NUMBER} Link: ${BLUE_OCEAN_URL}", \ "format": "org.matrix.custom.html", \ "formatted_body":"api-lib: Build Failed. Stage: ${FAILED_STAGE} Build-ID: <a href='${BLUE_OCEAN_URL}'>${env.BUILD_NUMBER}</a>"}""" - + if (env.BRANCH_NAME == 'master') { room = "!iQPAvQIiRwRpNOszjw:matrix.ozg-sh.de" } -- GitLab