Skip to content

Commit

Permalink
DINF-161: integrate gebit-build/gebit-forked
Browse files Browse the repository at this point in the history
  • Loading branch information
Volodjam committed Feb 13, 2023
1 parent 5ba430e commit 48cf67f
Show file tree
Hide file tree
Showing 4 changed files with 223 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ work
.settings
.DS_Store
.factorypath
eclipse-target/
9 changes: 9 additions & 0 deletions development/jenkins_job.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
JOB_GROUP=Jenkins
JOB_PRODUCT=
JOB_MVN_OPTS=-Xmx512M
JOB_INTEGRATION_SITE=false
JOB_DOCKER_LABELS=jenkins-slave-jdk11-maven
JOB_JDK=JDK11
JOB_MAVEN=Maven 3.8
JOB_REPORTERS=['junit']
JOB_FORKED_PROJECT=true
185 changes: 185 additions & 0 deletions development/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
<?xml version="1.0" encoding="UTF-8"?>

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

<mirrors>
<mirror>
<id>Nexus</id>
<name>Nexus Public Mirror</name>
<url>http://gebit-nexus.local.gebit.de/content/groups/public</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>

<servers>
<!-- For your own project replace the server ID and environment variables, e.g. xyz-relases and NEXUS_XYZ_USERNAME) -->
<!-- see https://wiki.gebit.de/display/GBLD/Deployment+password+management for details -->
<server>
<id>gebit-releases</id>
<username>${env.NEXUS_GEBIT_BUILD_USERNAME}</username>
<password>${env.NEXUS_GEBIT_BUILD_PASSWORD}</password>
</server>
<server>
<id>gebit-snapshots</id>
<username>${env.NEXUS_GEBIT_BUILD_USERNAME}</username>
<password>${env.NEXUS_GEBIT_BUILD_PASSWORD}</password>
</server>
<server>
<id>gebit-integration</id>
<username>${env.NEXUS_GEBIT_BUILD_USERNAME}</username>
<password>${env.NEXUS_GEBIT_BUILD_PASSWORD}</password>
</server>

<!-- Defines the user to deploy the site. Make sure the jenkins user has the correct key to access the server. -->
<server>
<id>gebit-maven-site</id>
<username>jenkins</username>
</server>
</servers>

<profiles>
<profile>
<id>nexus-profile</id>
<repositories>
<repository>
<id>releases</id>
<url>https://gebit-nexus.local.gebit.de/content/groups/releases</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>integration</id>
<url>https://gebit-nexus.local.gebit.de/content/groups/integration</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>snapshots</id>
<url>https://gebit-nexus.local.gebit.de/content/groups/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>public</id>
<url>https://gebit-nexus.local.gebit.de/content/repositories/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>public-osgi</id>
<url>https://gebit-nexus.local.gebit.de/content/repositories/public-osgi</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>

<pluginRepositories>
<pluginRepository>
<id>plugin-integration</id>
<url>https://gebit-nexus.local.gebit.de/content/groups/integration</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>plugin-releases</id>
<url>https://gebit-nexus.local.gebit.de/content/groups/releases</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>plugin-snapshots</id>
<url>https://gebit-nexus.local.gebit.de/content/groups/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>

<profile>
<id>disabled-jenkins-ci-repo-profile</id>
<repositories>
<repository>
<id>repo.jenkins-ci.org</id>
<url>none</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>incrementals</id>
<url>none</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>repo.jenkins-ci.org</id>
<url>none</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>incrementals</id>
<url>none</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>

<activeProfiles>
<activeProfile>nexus-profile</activeProfile>
<activeProfile>disabled-jenkins-ci-repo-profile</activeProfile>
</activeProfiles>
</settings>
28 changes: 28 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
<gitHubRepo>jenkinsci/${project.artifactId}</gitHubRepo>
<hpi.compatibleSinceVersion>1.4.0</hpi.compatibleSinceVersion>
<mockserver.version>5.14.0</mockserver.version>

<!-- GEBIT: versions to be used for gebit-build support -->
<version.tiles>2.8-gebit37</version.tiles>
<version.gebit-build-extension>1.2.2</version.gebit-build-extension>
<version.gebit-forked>1.0.0-I8</version.gebit-forked>
<!-- GEBIT: end -->
</properties>


Expand Down Expand Up @@ -370,7 +376,29 @@
</execution>
</executions>
</plugin>
<!-- GEBIT: Tiles -->
<plugin>
<groupId>io.repaint.maven</groupId>
<artifactId>tiles-maven-plugin</artifactId>
<version>${version.tiles}</version>
<extensions>true</extensions>
<configuration>
<tiles>
<tile>de.gebit.build.forked.tile:jenkins-plugin:${version.gebit-forked}</tile>
</tiles>
</configuration>
</plugin>
<!-- GEBIT: end -->
</plugins>
<!-- GEBIT: Extensions -->
<extensions>
<extension>
<groupId>de.gebit.build.maven</groupId>
<artifactId>gebit-build-extension</artifactId>
<version>${version.gebit-build-extension}</version>
</extension>
</extensions>
<!-- GEBIT: end -->
</build>

<profiles>
Expand Down

0 comments on commit 48cf67f

Please sign in to comment.