Skip to content
This repository was archived by the owner on Oct 8, 2020. It is now read-only.

Commit 9166973

Browse files
Jenkins pipeline file
1 parent 3aaadc2 commit 9166973

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

Jenkinsfile

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#!groovy
2+
3+
pipeline {
4+
agent any
5+
tools {
6+
maven 'Maven 3'
7+
jdk 'jdk8'
8+
}
9+
stages {
10+
stage ('Initialize') {
11+
steps {
12+
sh '''
13+
echo "PATH = ${PATH}"
14+
echo "M2_HOME = ${M2_HOME}"
15+
'''
16+
}
17+
}
18+
19+
stage('Prepare') {
20+
checkout scm
21+
}
22+
23+
stage ('Build') {
24+
steps {
25+
sh 'mvn clean package'
26+
}
27+
post {
28+
success {
29+
junit 'target/surefire-reports/**/*.xml'
30+
}
31+
}
32+
}
33+
34+
stage('Test') {
35+
steps {
36+
sh 'mvn test'
37+
}
38+
}
39+
40+
stage ('Deploy') {
41+
steps {
42+
sh 'mvn -Dmaven.test.failure.ignore=true install'
43+
}
44+
post {
45+
success {
46+
junit 'target/surefire-reports/**/*.xml'
47+
}
48+
}
49+
}
50+
51+
52+
53+
stage('Release') {
54+
55+
}
56+
}
57+
}

0 commit comments

Comments
 (0)