diff --git a/Jenkinsfile b/Jenkinsfile
index 62026ae1493a06df60d6ac630ad7e2bc4044f282..01e12566e30d4a280703c94da4591608bb210a93 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"
     }