islandsurvivalcraft/Jenkinsfile
Harrison Deng 6a37c9c90b
All checks were successful
ydeng/islandsurvivalcraft/pipeline/head This commit looks good
Added devcontainer and updated pipeline.
2024-07-22 04:54:33 +00:00

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