Skip to content

Commit be7706a

Browse files
authored
Added Jenkinsfile
* Adding Jenkins * Oops, invalid filename * Trying it out... * Test the tests stage
1 parent f0edb29 commit be7706a

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Jenkinsfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
pipeline {
2+
agent { docker { image 'maven:3.3.3' } }
3+
stages {
4+
stage('Build') {
5+
steps {
6+
sh 'mvn -B -DskipTests clean package'
7+
}
8+
}
9+
stage('Test') {
10+
steps {
11+
sh 'mvn test'
12+
}
13+
post {
14+
always {
15+
junit 'target/surefire-reports/*.xml'
16+
}
17+
}
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)