Updated CI to use new serverside tooling
All checks were successful
islandsurvivalcraft/pipeline/head This commit looks good
All checks were successful
islandsurvivalcraft/pipeline/head This commit looks good
This commit is contained in:
parent
00d11f837e
commit
4605a1c5f9
21
Jenkinsfile
vendored
21
Jenkinsfile
vendored
@ -1,33 +1,32 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
kubernetes {
|
kubernetes {
|
||||||
cloud 'Reslate Systems'
|
cloud 'rsys-devel'
|
||||||
defaultContainer 'conda'
|
defaultContainer 'maven'
|
||||||
|
inheritFrom 'maven'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage ("Install") {
|
stage ("validate") {
|
||||||
steps {
|
steps {
|
||||||
sh 'conda update conda -y -q'
|
sh "mvn validate"
|
||||||
sh 'conda env update -n base --file environment.yml -q'
|
|
||||||
sh "conda run -n base mvn validate"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ("Build") {
|
stage ("compile") {
|
||||||
steps {
|
steps {
|
||||||
sh "conda run -n base mvn compile"
|
sh "mvn compile"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ("Test") {
|
stage ("test") {
|
||||||
steps {
|
steps {
|
||||||
sh "conda run -n base mvn -Dmaven.test.skip=false test"
|
sh "mvn -Dmaven.test.skip=false test"
|
||||||
xunit checksName: '', tools: [JUnit(excludesPattern: '', pattern: 'target/surefire-reports/TEST-*.xml', stopProcessingIfError: true)]
|
xunit checksName: '', tools: [JUnit(excludesPattern: '', pattern: 'target/surefire-reports/TEST-*.xml', stopProcessingIfError: true)]
|
||||||
recordCoverage(tools: [[parser: 'JUNIT', pattern: 'target/surefire-reports/TEST-*.xml']])
|
recordCoverage(tools: [[parser: 'JUNIT', pattern: 'target/surefire-reports/TEST-*.xml']])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ("Package") {
|
stage ("Package") {
|
||||||
steps {
|
steps {
|
||||||
sh "conda run -n base mvn package"
|
sh "mvn package"
|
||||||
archiveArtifacts artifacts: 'target/*.jar', fingerprint: true, followSymlinks: false
|
archiveArtifacts artifacts: 'target/*.jar', fingerprint: true, followSymlinks: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user