diff --git a/Jenkinsfile b/Jenkinsfile index c36c05bdf5c5cf390d750d14a70d11d807ca632f..89135993aeac83f7cdbecbeebe66881730510098 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 e55344ef8a62670dc929812b0c7e320b040abb1e..ed5c50d169c713d74a2f97ecd2d589114b87dbfa 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