Skip to content
Snippets Groups Projects
Commit 17937e37 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-200 deploy to nexus

parent c161b596
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,29 @@ pipeline { ...@@ -32,7 +32,29 @@ pipeline {
} }
} }
stage('build pluto') { stage('deploy pluto-interface'){
when {
anyOf {
branch 'master'
branch 'release'
branch 'nexus'
}
}
steps {
script {
FAILED_STAGE = env.STAGE_NAME
}
container('maven-11') {
dir('pluto-interface') {
configFileProvider([configFile(fileId: '9aac2fac-7d8d-4128-846b-0a61951df703', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn -s $MAVEN_SETTINGS -DskipTests deploy'
}
}
}
}
}
stage('build pluto-server') {
steps { steps {
script { script {
FAILED_STAGE=env.STAGE_NAME FAILED_STAGE=env.STAGE_NAME
...@@ -46,6 +68,28 @@ pipeline { ...@@ -46,6 +68,28 @@ pipeline {
} }
} }
stage('deploy pluto-server'){
when {
anyOf {
branch 'master'
branch 'release'
branch 'nexus'
}
}
steps {
script {
FAILED_STAGE = env.STAGE_NAME
}
container('maven-11') {
dir('pluto-server') {
configFileProvider([configFile(fileId: '9aac2fac-7d8d-4128-846b-0a61951df703', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn -s $MAVEN_SETTINGS -DskipTests deploy'
}
}
}
}
}
stage('openshift deploy') { stage('openshift deploy') {
steps { steps {
script { script {
......
...@@ -86,4 +86,24 @@ ...@@ -86,4 +86,24 @@
</plugins> </plugins>
</build> </build>
<repositories>
<repository>
<id>ozg-nexus</id>
<name>ozg nexus</name>
<url>https://nexus.ozg-sh.de/repository/ozg-group/</url>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>ozg-nexus</id>
<name>ozg-releases</name>
<url>https://nexus.ozg-sh.de/repository/ozg-releases/</url>
</repository>
<snapshotRepository>
<id>ozg-nexus</id>
<name>ozg-snapshots</name>
<url>https://nexus.ozg-sh.de/repository/ozg-snapshots/</url>
</snapshotRepository>
</distributionManagement>
</project> </project>
\ No newline at end of file
...@@ -180,6 +180,51 @@ ...@@ -180,6 +180,51 @@
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<configuration>
<offline>true</offline>
</configuration>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>ozg-nexus</id>
<name>ozg nexus</name>
<url>https://nexus.ozg-sh.de/repository/ozg-group/</url>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>ozg-nexus</id>
<name>ozg-releases</name>
<url>https://nexus.ozg-sh.de/repository/ozg-releases/</url>
</repository>
<snapshotRepository>
<id>ozg-nexus</id>
<name>ozg-snapshots</name>
<url>https://nexus.ozg-sh.de/repository/ozg-snapshots/</url>
</snapshotRepository>
</distributionManagement>
<profiles>
<profile>
<id>docker-build</id>
<build>
<plugins>
<plugin> <plugin>
<groupId>com.spotify</groupId> <groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId> <artifactId>dockerfile-maven-plugin</artifactId>
...@@ -213,23 +258,9 @@ ...@@ -213,23 +258,9 @@
</dependency> </dependency>
</dependencies> </dependencies>
</plugin> </plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<configuration>
<offline>true</offline>
</configuration>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
</profile>
</profiles>
</project> </project>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment