Prepare for multiple platforms by default

This commit is contained in:
R. Tyler Croy 2017-12-13 15:23:02 -08:00
parent a4ec9478bb
commit 5197a45b01
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 15 additions and 14 deletions

View File

@ -6,22 +6,23 @@ def call(String platform) {
switch (platform) {
case 'java':
pipeline {
agent {
docker {
image 'maven:3-alpine'
}
}
agent none
stages {
stage('Prepare') {
steps {
sh 'mvn -B clean '
}
}
stage('Test') {
steps {
sh 'mvn test -B'
junit testResults: '**/surefire-reports/**/*.xml', allowEmptyResults: true
archiveArtifacts artifacts: '**/*.jar', fingerprint: true
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
}
}
}
}
}
}