Slightly less indentations
This commit is contained in:
parent
5197a45b01
commit
a31beb178a
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue