Skip to content

Commit 050982f

Browse files
committed
Update Jenkinsfile
1 parent 0cb945a commit 050982f

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

Jenkinsfile

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,25 @@ pipeline {
77
}
88

99
stages {
10-
stage('Test') {
10+
stage('Build') {
1111
steps {
12-
sh 'mvn test'
12+
sh 'mvn -B -DskipTests clean package'
13+
}
14+
post {
15+
success {
16+
archiveArtifacts artifacts: 'target/*.jar, target/*.exe'
17+
}
1318
}
1419
}
15-
stage('Build') {
20+
stage('Test') {
1621
steps {
17-
sh 'mvn clean package'
22+
sh 'mvn test'
1823
}
19-
}
20-
}
21-
post {
22-
always {
23-
archiveArtifacts artifacts: 'target/*.jar, target/*.exe', onlyIfSuccessful: true
24+
post {
25+
always {
26+
junit 'target/surefire-reports/*.xml'
27+
}
2428
}
29+
}
2530
}
2631
}

0 commit comments

Comments
 (0)