Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Commit

Permalink
#2 add Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
agabrys committed Dec 4, 2016
1 parent 7329547 commit 37887c6
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Jenkinsfile
@@ -0,0 +1,26 @@
properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '-1', artifactNumToKeepStr: '10', daysToKeepStr: '-1', numToKeepStr: '10']]])

node {
timestamps {
stage('Cleanup') {
step($class: 'WsCleanup')
}
stage('Checkout') {
checkout scm
}

withMaven(maven: 'MVN-3', jdk: 'JDK-8', mavenLocalRepo: '.repository') {
stage('Build') {
sh 'mvn -e clean install site -DskipTest'
}
stage('Test') {
sh 'mvn test'
junit '**/target/*/TEST-*.xml'
}
}

stage('Archive') {
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
}
}
}

0 comments on commit 37887c6

Please sign in to comment.