islandsurvivalcraft/Jenkinsfile

34 lines
987 B
Plaintext
Raw 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"
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
}
}
}
}