All checks were successful
spigotresourcesync/pipeline/head This commit looks good
29 lines
846 B
Groovy
29 lines
846 B
Groovy
pipeline {
|
|
agent {
|
|
kubernetes {
|
|
cloud 'rsys-devel'
|
|
defaultContainer 'maven'
|
|
inheritFrom 'maven'
|
|
}
|
|
}
|
|
stages {
|
|
stage("validate") {
|
|
steps {
|
|
sh "mvn validate"
|
|
}
|
|
}
|
|
stage("test") {
|
|
steps {
|
|
sh "mvn test"
|
|
xunit checksName: '', tools: [JUnit(excludesPattern: '', pattern: 'target/surefire-reports/TEST-*.xml', stopProcessingIfError: true)]
|
|
recordCoverage(tools: [[pattern: 'target/site/jacoco/jacoco.xml']])
|
|
}
|
|
}
|
|
stage("deploy") {
|
|
steps {
|
|
sh "mvn package"
|
|
archiveArtifacts artifacts: 'target/*.jar', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
|
|
}
|
|
}
|
|
}
|
|
} |