2022-12-04 05:09:04 +00:00
|
|
|
pipeline {
|
2024-07-22 04:54:33 +00:00
|
|
|
agent {
|
|
|
|
kubernetes {
|
|
|
|
cloud 'Reslate Systems'
|
|
|
|
defaultContainer 'conda'
|
|
|
|
}
|
|
|
|
}
|
2022-12-04 05:09:04 +00:00
|
|
|
stages {
|
|
|
|
stage ("Install") {
|
|
|
|
steps {
|
2024-07-22 04:54:33 +00:00
|
|
|
sh 'conda update conda -y -q'
|
|
|
|
sh 'conda env update -n base --file environment.yml -q'
|
|
|
|
sh "conda run -n base mvn validate"
|
2022-12-04 05:09:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage ("Build") {
|
|
|
|
steps {
|
2024-07-22 04:54:33 +00:00
|
|
|
sh "conda run -n base mvn compile"
|
2022-12-04 05:09:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage ("Test") {
|
|
|
|
steps {
|
2024-07-22 04:54:33 +00:00
|
|
|
sh "conda run -n base mvn -Dmaven.test.skip=false test"
|
2024-07-22 05:07:01 +00:00
|
|
|
xunit checksName: '', tools: [JUnit(excludesPattern: '', pattern: 'target/surefire-reports/TEST-*.xml', stopProcessingIfError: true)]
|
2024-07-22 04:54:33 +00:00
|
|
|
recordCoverage(tools: [[parser: 'JUNIT', pattern: 'target/surefire-reports/TEST-*.xml']])
|
2022-12-04 05:09:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage ("Package") {
|
|
|
|
steps {
|
2024-07-22 04:54:33 +00:00
|
|
|
sh "conda run -n base mvn package"
|
2022-12-04 05:38:35 +00:00
|
|
|
archiveArtifacts artifacts: 'target/*.jar', fingerprint: true, followSymlinks: false
|
2022-12-04 05:09:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|