initial setup
de.nclazz/maven-boot/pipeline/head There was a failure building this commit
Details
de.nclazz/maven-boot/pipeline/head There was a failure building this commit
Details
commit
d9167ad083
|
@ -0,0 +1,18 @@
|
|||
# GENERAL
|
||||
target/
|
||||
reporting/
|
||||
*.log*
|
||||
logs/
|
||||
|
||||
# MAC
|
||||
.DS_Store
|
||||
|
||||
# ECLIPSE
|
||||
.classpath
|
||||
.settings
|
||||
.project
|
||||
/.metadata/
|
||||
|
||||
# IntelliJ
|
||||
.idea
|
||||
*.iml
|
|
@ -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()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -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.
|
||||
|
|
@ -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>
|
|
@ -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()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue