From e74c4f3024c7622b69ea90f36dcc9945c80aabbf Mon Sep 17 00:00:00 2001
From: Felix Reichenbach <felix.reichenbach@mgm-tp.com>
Date: Fri, 28 Mar 2025 14:50:07 +0100
Subject: [PATCH] OZG-7906 fix typo in pom, check versions in Jenkinsfile

---
 Jenkinsfile | 4 ++++
 pom.xml     | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index c36c05b..8913599 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -49,7 +49,11 @@ pipeline {
                 script {
                     FAILED_STAGE = env.STAGE_NAME
                     def rootVersion = getPomVersion('pom.xml')
+                    def jobVersion = getPomVersion('pom.xml')
 
+                    if(rootVersion != jobVersion) {
+                        error("Version in aggregation-manager-job stimmt nicht mit parent überein.")
+                    }
                     if(isReleaseBranch()){
                         if ( !(rootVersion ==~ RELEASE_REGEX)) {
                             error("Keine Release Version für Branch ${env.BRANCH_NAME}.")
diff --git a/pom.xml b/pom.xml
index e55344e..ed5c50d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -49,7 +49,7 @@
 		<jslt.version>0.1.14</jslt.version>
 		<hibernate-validator.version>8.0.2.Final</hibernate-validator.version>
 	</properties>
-	<dependencyManagment>
+	<dependencyManagement>
 		<dependencies>
 			<dependency>
 				<artifactId>ozg-cloud-spring-boot-starter</artifactId>
@@ -76,5 +76,5 @@
 				<scope>test</scope>
 			</dependency>
 		</dependencies>
-	</dependencyManagment>
+	</dependencyManagement>
 </project>
\ No newline at end of file
-- 
GitLab