islandsurvivalcraft/Jenkinsfile
Harrison Deng 1a7a80d74c
All checks were successful
ydeng/islandsurvivalcraft/pipeline/head This commit looks good
Added unit test report.
2024-07-22 05:07:01 +00:00

35 lines
1.1 KiB
Groovy

pipeline {
agent {
kubernetes {
cloud 'Reslate Systems'
defaultContainer 'conda'
}
}
stages {
stage ("Install") {
steps {
sh 'conda update conda -y -q'
sh 'conda env update -n base --file environment.yml -q'
sh "conda run -n base mvn validate"
}
}
stage ("Build") {
steps {
sh "conda run -n base mvn compile"
}
}
stage ("Test") {
steps {
sh "conda run -n base mvn -Dmaven.test.skip=false 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 ("Package") {
steps {
sh "conda run -n base mvn package"
archiveArtifacts artifacts: 'target/*.jar', fingerprint: true, followSymlinks: false
}
}
}
}