Skip to content
Snippets Groups Projects
Commit 6b8ff5e3 authored by OZGCloud's avatar OZGCloud
Browse files

add nexus deploy

parent eec7ff8f
Branches
Tags
No related merge requests found
...@@ -138,6 +138,24 @@ pipeline { ...@@ -138,6 +138,24 @@ pipeline {
} }
} }
stage('nexus deploy'){
when {
anyOf {
branch 'master'
branch 'release'
branch 'nexus'
}
}
steps {
script {
FAILED_STAGE = env.STAGE_NAME
}
container('maven-11') {
sh 'mvn -pl -goofy-client -DskipTests deploy'
}
}
}
stage('Openshift deploy') { stage('Openshift deploy') {
when { when {
anyOf { anyOf {
......
...@@ -72,6 +72,14 @@ ...@@ -72,6 +72,14 @@
</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>
<profiles> <profiles>
<profile> <profile>
<activation> <activation>
......
...@@ -204,6 +204,38 @@ ...@@ -204,6 +204,38 @@
</executions> </executions>
</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>
<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>
...@@ -221,7 +253,7 @@ ...@@ -221,7 +253,7 @@
<executions> <executions>
<execution> <execution>
<id>default</id> <id>default</id>
<phase>deploy</phase> <phase>install</phase>
<goals> <goals>
<goal>build</goal> <goal>build</goal>
<goal>tag</goal> <goal>tag</goal>
...@@ -237,23 +269,8 @@ ...@@ -237,23 +269,8 @@
</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>
...@@ -162,4 +162,16 @@ ...@@ -162,4 +162,16 @@
</pluginManagement> </pluginManagement>
</build> </build>
<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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment