Added test and coverage results
All checks were successful
spigotresourcesync/pipeline/head This commit looks good
All checks were successful
spigotresourcesync/pipeline/head This commit looks good
This commit is contained in:
parent
6bb54c5cdb
commit
5574342811
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -15,11 +15,14 @@ pipeline {
|
|||||||
stage("test") {
|
stage("test") {
|
||||||
steps {
|
steps {
|
||||||
sh "mvn test"
|
sh "mvn test"
|
||||||
|
xunit checksName: '', tools: [JUnit(excludesPattern: '', pattern: 'target/surefire-reports/TEST-*.xml', stopProcessingIfError: true)]
|
||||||
|
recordCoverage(tools: [[parser: 'JUNIT', pattern: 'target/surefire-reports/TEST-*.xml']])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("deploy") {
|
stage("deploy") {
|
||||||
steps {
|
steps {
|
||||||
sh "mvn package"
|
sh "mvn package"
|
||||||
|
archiveArtifacts artifacts: 'target/*.jar', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
10
pom.xml
10
pom.xml
@ -54,5 +54,13 @@
|
|||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
|
<version>3.5.2</version>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
</project>
|
</project>
|
Loading…
x
Reference in New Issue
Block a user