Added devcontainer and updated pipeline.
All checks were successful
ydeng/islandsurvivalcraft/pipeline/head This commit looks good

This commit is contained in:
2024-07-22 04:54:33 +00:00
parent 4487a2cb16
commit 6a37c9c90b
9 changed files with 35 additions and 89 deletions

21
Jenkinsfile vendored
View File

@@ -1,27 +1,32 @@
pipeline {
agent any
agent {
kubernetes {
cloud 'Reslate Systems'
defaultContainer 'conda'
}
}
stages {
stage ("Install") {
steps {
sh 'mamba env update --file environment.yml'
sh 'echo "mamba activate islandsurvivalcraft" >> ~/.bashrc'
sh "mvn validate"
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 "mvn compile"
sh "conda run -n base mvn compile"
}
}
stage ("Test") {
steps {
sh "mvn -Dmaven.test.skip=false test"
junit 'target/surefire-reports/TEST-*.xml'
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 "mvn package"
sh "conda run -n base mvn package"
archiveArtifacts artifacts: 'target/*.jar', fingerprint: true, followSymlinks: false
}
}