Skip to content

Commit

Permalink
Add Jenkinsfile for the Jenkins pipeline process
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanTheAllmighty committed Jan 28, 2016
1 parent 2cf6c6b commit 03c1370
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
node {
stage 'Checkout'
git 'https://github.com/ATLauncher/ATLauncher.git'

stage 'Setup'
def maven = docker.image('ryantheallmighty/maven-custom');
maven.pull();

stage 'Test'
maven.inside('-v /m2repo:/m2repo') {
sh 'mvn -Dmaven.repo.local=/m2repo clean test'
}

stage 'Build'
maven.inside('-v /m2repo:/m2repo') {
sh 'mvn -Dmaven.repo.local=/m2repo -DskipTests clean install'
}

stage 'Archive'
archive 'target/ATLauncher-*.exe,target/ATLauncher-*.zip,target/ATLauncher-*.jar'
}

0 comments on commit 03c1370

Please sign in to comment.