Test on Debian and Alpine, opt out of FreeBSD for now

This commit is contained in:
R. Tyler Croy 2017-12-14 13:08:03 -08:00
parent 1e8863ee5c
commit 3eb0e72c5d
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 14 additions and 8 deletions

View File

@ -15,7 +15,19 @@ def call(String platform) {
stage('Test') {
failFast true
parallel {
stage('Linux') {
stage('Debian Linux') {
agent { docker 'maven:3-slim' }
steps {
sh 'mvn test -B'
}
post {
always {
junit testResults: '**/surefire-reports/**/*.xml', allowEmptyResults: true
archiveArtifacts artifacts: '**/*.jar', fingerprint: true
}
}
}
stage('Alpine Linux') {
agent { docker 'maven:3-alpine' }
steps {
sh 'mvn test -B'
@ -30,13 +42,7 @@ def call(String platform) {
stage('FreeBSD 11') {
agent { label 'freebsd' }
steps {
sh 'mvn test -B'
}
post {
always {
junit testResults: '**/surefire-reports/**/*.xml', allowEmptyResults: true
archiveArtifacts artifacts: '**/*.jar', fingerprint: true
}
echo 'Code Valet does not currently support Maven on FreeBSD'
}
}
}