This should put some fear into andrew

This commit is contained in:
R. Tyler Croy 2017-12-13 15:08:09 -08:00
parent 203d402e55
commit 6a830eddb4
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 21 additions and 1 deletions

View File

@ -5,7 +5,27 @@
def call(String platform) {
switch (platform) {
case 'java':
echo 'Hello World'
pipeline {
agent {
docker {
image 'maven:3-alpine'
}
}
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
}
}
}
}
break
default: