Add Jenkinsfile
This commit is contained in:
parent
fc3a11cf40
commit
34427e75a1
1 changed files with 27 additions and 0 deletions
27
Jenkinsfile
vendored
Normal file
27
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Checkout') {
|
||||||
|
git branch: 'master',url: https://git.horizonnet.eu/mateusz/java-helloworld.git'
|
||||||
|
}
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
sh 'mvn clean compile'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Test') {
|
||||||
|
steps {
|
||||||
|
sh 'mvn test'
|
||||||
|
junit '**/target/surefire-reports/*.xml'
|
||||||
|
jacoco
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Deploy') {
|
||||||
|
steps {
|
||||||
|
sh 'mvn package'
|
||||||
|
archiveArtifacts artifacts: '***/target/*.jar', fingerprint: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue