Added test and coverage results
All checks were successful
spigotresourcesync/pipeline/head This commit looks good

This commit is contained in:
Harrison Deng 2024-11-14 03:07:16 +00:00
parent 6bb54c5cdb
commit 5574342811
2 changed files with 12 additions and 1 deletions

3
Jenkinsfile vendored
View File

@ -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
View File

@ -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>