Slightly less indentations

This commit is contained in:
R. Tyler Croy 2017-12-13 16:07:38 -08:00
parent 5197a45b01
commit a31beb178a
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 27 additions and 22 deletions

View File

@ -5,28 +5,8 @@
def call(String platform) {
switch (platform) {
case 'java':
pipeline {
agent none
stages {
stage('Test') {
failFast true
parallel {
stage('Linux') {
agent { docker 'maven:3-alpine' }
steps {
sh 'mvn test -B'
}
post {
always {
junit testResults: '**/surefire-reports/**/*.xml', allowEmptyResults: true
archiveArtifacts artifacts: '**/*.jar', fingerprint: true
}
}
}
}
}
}
}
defaultsForJava()
return
break
default:
@ -34,3 +14,28 @@ def call(String platform) {
break
}
}
void defaultsForJava() {
pipeline {
agent none
stages {
stage('Test') {
failFast true
parallel {
stage('Linux') {
agent { docker 'maven:3-alpine' }
steps {
sh 'mvn test -B'
}
post {
always {
junit testResults: '**/surefire-reports/**/*.xml', allowEmptyResults: true
archiveArtifacts artifacts: '**/*.jar', fingerprint: true
}
}
}
}
}
}
}
}