This commit is contained in:
Andreas Kluth 2017-06-26 14:28:09 +00:00 committed by GitHub
commit 171c9c856a
2 changed files with 40 additions and 0 deletions

39
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,39 @@
node {
def mvnHome
mvnHome = tool 'MVN 3.3'
env.JAVA_HOME = tool 'Java 8'
stage('Preparation') { // for display purposes
git 'https://github.com/spring-projects/spring-petclinic.git'
}
stage('Build') {
sh "'${mvnHome}/bin/mvn' install -Dmaven.test.skip=true"
}
stage('Test') {
parallel (
"test": {
sh "'${mvnHome}/bin/mvn' test"},
"analysis": {
sh "'${mvnHome}/bin/mvn' findbugs:findbugs"
sh "'${mvnHome}/bin/mvn' checkstyle:checkstyle"
sh "'${mvnHome}/bin/mvn' pmd:pmd"},
"docu": {
sh "'${mvnHome}/bin/mvn' javadoc:javadoc -Dmaven.javadoc.failOnError=false"}
)
}
stage('Report') {
junit '**/target/surefire-reports/TEST-*.xml'
step([$class: 'FindBugsPublisher', pattern: '**/findbugsXml.xml', unstableTotalAll:'0'])
step([$class: 'hudson.plugins.checkstyle.CheckStylePublisher', pattern: '**/target/checkstyle-result.xml', unstableTotalAll:'0'])
step([$class: 'PmdPublisher', pattern: '**/target/pmd.xml', unstableTotalAll:'0'])
archive 'target/*.jar'
}
stage('Deploy') {
sleep 10
echo "PerClinic deployed"
}
}

1
boon Normal file
View file

@ -0,0 +1 @@
noob