Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Add Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Sep 22, 2016
1 parent 50ed89c commit 4cdbfc1
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Jenkinsfile
@@ -0,0 +1,26 @@
node {
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm', 'defaultFg': 1, 'defaultBg': 2]) {
// This is the current syntax for invoking a build wrapper, naming the class.
wrap([$class: 'TimestamperBuildWrapper']) {
// Mark the code checkout 'stage'....
stage 'Checkout'

// Checkout code from repository
checkout scm

// Get the maven tool.
stage 'Get Maven'
sh "./mvnw --version"

// Mark the code build 'stage'....
stage 'Build'
// Run the maven build
sh """./mvnw clean package \
--batch-mode \
--settings .travis-settings.xml \
--update-snapshots \
-DstaticAnalysis \
"""
}
}
}

0 comments on commit 4cdbfc1

Please sign in to comment.