We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b68a712 commit a94d620Copy full SHA for a94d620
Jenkinsfile
@@ -1,17 +1,28 @@
1
pipeline {
2
- agent any
3
- stages {
4
- stage('Test') {
5
- steps {
6
- echo 'Test'
7
- }
+ agent any
+ environment {
+ MAVEN_HOME = tool 'Maven'
8
}
9
-
10
- stage('Build') {
11
12
- echo 'Build'
13
+ stages {
+ stage('Checkout') {
+ steps {
+ checkout scm
+ }
+ stage('Test') {
14
+ sh './mvnw test'
15
16
+ post {
17
+ always {
18
+ junit '**/target/surefire-reports/*.xml'
19
20
21
22
+ stage('Build') {
23
24
+ sh './mvnw package'
25
26
27
28
0 commit comments