Skip to content
Snippets Groups Projects
Commit be2acd8c authored by OZG-Cloud Team's avatar OZG-Cloud Team
Browse files

OZG-200 deploy to nexus

parent 5540d638
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,26 @@ pipeline {
}
}
stage('deploy intelliform-adapter'){
when {
anyOf {
branch 'master'
branch 'release'
branch 'nexus'
}
}
steps {
script {
FAILED_STAGE = env.STAGE_NAME
}
container('maven') {
configFileProvider([configFile(fileId: '9aac2fac-7d8d-4128-846b-0a61951df703', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn -s $MAVEN_SETTINGS -DskipTests deploy'
}
}
}
}
stage('openshift deploy') {
steps {
script {
......
......@@ -163,44 +163,6 @@
</configuration>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>1.4.13</version>
<configuration>
<username>admin</username>
<password>admin</password>
<!-- <username>srv-schiffsregister-jenkins</username> -->
<!-- <password>Dataport2018!</password> -->
<!-- <repository>build.schir:8082/schir-docker/schir</repository> -->
<repository>default-route-openshift-image-registry.apps.lab.okd.local/sh-eingang-dev/if-adapter</repository>
<!-- <repository>artefactrepo-ccse.dataport.de/schiffsregister-docker-development</repository> -->
<tag>${git.branch}-${project.version}</tag>
<useMavenSettingsForAuth>true</useMavenSettingsForAuth>
<buildArgs>
<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
</buildArgs>
</configuration>
<executions>
<execution>
<id>default</id>
<phase>deploy</phase>
<goals>
<goal>build</goal>
<goal>tag</goal>
<goal>push</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1.1</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
......@@ -246,4 +208,67 @@
</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>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>1.4.13</version>
<configuration>
<username>admin</username>
<password>admin</password>
<repository>default-route-openshift-image-registry.apps.lab.okd.local/sh-eingang-dev/if-adapter</repository>
<tag>${git.branch}-${project.version}</tag>
<useMavenSettingsForAuth>true</useMavenSettingsForAuth>
<buildArgs>
<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
</buildArgs>
</configuration>
<executions>
<execution>
<id>default</id>
<phase>deploy</phase>
<goals>
<goal>build</goal>
<goal>tag</goal>
<goal>push</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment