islandsurvivalcraft/Jenkinsfile

35 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

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"
2024-07-22 05:07:01 +00:00
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
}
}
}
}