Harrison Deng 4605a1c5f9
All checks were successful
islandsurvivalcraft/pipeline/head This commit looks good
Updated CI to use new serverside tooling
2024-11-14 23:19:18 +00:00

34 lines
977 B
Groovy

pipeline {
agent {
kubernetes {
cloud 'rsys-devel'
defaultContainer 'maven'
inheritFrom 'maven'
}
}
stages {
stage ("validate") {
steps {
sh "mvn validate"
}
}
stage ("compile") {
steps {
sh "mvn compile"
}
}
stage ("test") {
steps {
sh "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 "mvn package"
archiveArtifacts artifacts: 'target/*.jar', fingerprint: true, followSymlinks: false
}
}
}
}