initial setup
de.nclazz/maven-boot/pipeline/head There was a failure building this commit Details

develop
Niclas Thobaben 2020-11-30 21:06:26 +01:00
commit d9167ad083
5 changed files with 176 additions and 0 deletions

18
.gitignore vendored 100644
View File

@ -0,0 +1,18 @@
# GENERAL
target/
reporting/
*.log*
logs/
# MAC
.DS_Store
# ECLIPSE
.classpath
.settings
.project
/.metadata/
# IntelliJ
.idea
*.iml

24
Jenkinsfile vendored 100644
View File

@ -0,0 +1,24 @@
pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'mvn clean package'
}
}
stage('deploy') {
steps {
sh 'mvn help:effective-settings '
sh 'mvn deploy -Prelease'
}
}
}
post {
always {
cleanWs()
}
}
}

8
README.md 100644
View File

@ -0,0 +1,8 @@
# Maven Boot
<img src="https://jenkins.niclas-thobaben.de/job/de.nclazz/maven-boot/badge/icon">
This Project is the parent Maven project for all [de.nclazz](https://git.l--n.de/de.nclazz) projects.
It also contains some more or less useful templates and defaults for other projects.

77
pom.xml 100644
View File

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.nclazz</groupId>
<artifactId>maven-boot</artifactId>
<version>1.0.0</version>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<junit.version>5.3.1</junit.version>
<junit.jupiter.commons.version>5.3.1</junit.jupiter.commons.version>
<lombok.version>1.18.16</lombok.version>
<log4j.version>1.2.17</log4j.version>
</properties>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-commons</artifactId>
<version>${junit.jupiter.commons.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M5</version>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,49 @@
pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'echo "Build Project..."'
}
}
stage('Integration-Tests') {
steps {
sh 'echo "Start Integration-Tests..."'
}
}
stage('deploy') {
parallel {
stage('deploy-QA') {
when { branch 'develop' }
steps {
sh 'mvn help:effective-settings '
sh 'mvn deploy -Pqa'
}
}
stage('deploy-STAGING') {
when { branch 'staging' }
steps {
sh 'mvn help:effective-settings '
sh 'mvn deploy -Pstaging'
}
}
stage('deploy-RELEASE') {
when { branch 'master' }
steps {
sh 'mvn help:effective-settings '
sh 'mvn deploy -Prelease'
}
}
}
}
}
post {
always {
cleanWs()
}
}
}