Skip to content

Commit a94d620

Browse files
committed
Test
1 parent b68a712 commit a94d620

File tree

1 file changed

+24
-13
lines changed

1 file changed

+24
-13
lines changed

Jenkinsfile

+24-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
11
pipeline {
2-
agent any
3-
stages {
4-
stage('Test') {
5-
steps {
6-
echo 'Test'
7-
}
2+
agent any
3+
environment {
4+
MAVEN_HOME = tool 'Maven'
85
}
9-
10-
stage('Build') {
11-
steps {
12-
echo 'Build'
13-
}
6+
stages {
7+
stage('Checkout') {
8+
steps {
9+
checkout scm
10+
}
11+
}
12+
stage('Test') {
13+
steps {
14+
sh './mvnw test'
15+
}
16+
post {
17+
always {
18+
junit '**/target/surefire-reports/*.xml'
19+
}
20+
}
21+
}
22+
stage('Build') {
23+
steps {
24+
sh './mvnw package'
25+
}
26+
}
1427
}
15-
16-
}
1728
}

0 commit comments

Comments
 (0)