Don't do parallel by default until JENKINS-48571 is fixed

https://issues.jenkins-ci.org/browse/JENKINS-48571
This commit is contained in:
R. Tyler Croy 2017-12-14 13:48:48 -08:00
parent fecdabab95
commit cc8272a3a1
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 28 additions and 33 deletions

View File

@ -12,43 +12,38 @@ def call(String platform) {
timeout(time: 1, unit: 'HOURS') timeout(time: 1, unit: 'HOURS')
} }
stages { stages {
stage('Test') { stage('Debian Linux') {
failFast true agent { docker 'maven:slim' }
parallel { steps {
stage('Debian Linux') { checkout scm
agent { docker 'maven:slim' } sh 'mvn test -B'
steps { }
checkout scm post {
sh 'mvn test -B' always {
} junit testResults: '**/surefire-reports/**/*.xml', allowEmptyResults: true
post { archiveArtifacts artifacts: '**/*.jar', fingerprint: true
always {
junit testResults: '**/surefire-reports/**/*.xml', allowEmptyResults: true
archiveArtifacts artifacts: '**/*.jar', fingerprint: true
}
}
} }
stage('Alpine Linux') { }
agent { docker 'maven:3-alpine' } }
steps { stage('Alpine Linux') {
checkout scm agent { docker 'maven:3-alpine' }
sh 'mvn test -B' steps {
} checkout scm
post { sh 'mvn test -B'
always { }
junit testResults: '**/surefire-reports/**/*.xml', allowEmptyResults: true post {
archiveArtifacts artifacts: '**/*.jar', fingerprint: true always {
} junit testResults: '**/surefire-reports/**/*.xml', allowEmptyResults: true
} archiveArtifacts artifacts: '**/*.jar', fingerprint: true
}
stage('FreeBSD 11') {
agent { label 'freebsd' }
steps {
echo 'Code Valet does not currently support Maven on FreeBSD'
}
} }
} }
} }
stage('FreeBSD 11') {
agent { label 'freebsd' }
steps {
echo 'Code Valet does not currently support Maven on FreeBSD'
}
}
} }
} }
return return