Skip to content
Snippets Groups Projects
Commit 0a43f73f authored by OZGCloud's avatar OZGCloud
Browse files

OZG-3532 OZG-4581 Adjust Jenkinsfile

parent 6852eb3d
No related branches found
No related tags found
No related merge requests found
...@@ -30,22 +30,28 @@ pipeline { ...@@ -30,22 +30,28 @@ pipeline {
script { script {
FAILED_STAGE = env.STAGE_NAME FAILED_STAGE = env.STAGE_NAME
def rootVersion = getPomVersion('pom.xml') def rootVersion = getPomVersion('pom.xml')
def userManagerVersion = getPomVersion('user-manager-server/pom.xml')
def interfaceVersion = getPomVersion('user-manager-interface/pom.xml')
if(env.BRANCH_NAME == 'release'){ if(env.BRANCH_NAME == 'release'){
if ( !(rootVersion ==~ RELEASE_REGEX) || !(userManagerVersion ==~ RELEASE_REGEX) || !(interfaceVersion ==~ RELEASE_REGEX)) { 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 { } else {
if ( !(rootVersion ==~ SNAPSHOT_REGEX) || !(userManagerVersion ==~ SNAPSHOT_REGEX) || !(interfaceVersion ==~ SNAPSHOT_REGEX)) { if ( !(rootVersion ==~ SNAPSHOT_REGEX) ) {
error("Keine Snapshot Version für Branch ${env.BRANCH_NAME}.") error("Keine Snapshot Version für Branch ${env.BRANCH_NAME}.")
} }
} }
}
}
}
if( !(rootVersion == userManagerVersion && rootVersion == interfaceVersion )){ stage('Build UserManager parent pom') {
error("Versionen sind nicht identisch") steps {
script {
FAILED_STAGE=env.STAGE_NAME
} }
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
sh './mvnw -N -s $MAVEN_SETTINGS clean deploy -Dmaven.wagon.http.retryHandler.count=3'
} }
} }
} }
......
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<user.manager.interface.version>2.0.0-SNAPSHOT</user.manager.interface.version>
<quarkus.platform.version>3.5.0</quarkus.platform.version> <quarkus.platform.version>3.5.0</quarkus.platform.version>
<kop.license.version>1.3.0</kop.license.version> <kop.license.version>1.3.0</kop.license.version>
<jakarta.interceptor.version>2.1.0</jakarta.interceptor.version> <jakarta.interceptor.version>2.1.0</jakarta.interceptor.version>
...@@ -72,7 +71,7 @@ ...@@ -72,7 +71,7 @@
<dependency> <dependency>
<groupId>de.ozgcloud.user</groupId> <groupId>de.ozgcloud.user</groupId>
<artifactId>user-manager-interface</artifactId> <artifactId>user-manager-interface</artifactId>
<version>${user.manager.interface.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<!-- Quarkus --> <!-- Quarkus -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment