Add initial jenkinsfile

This commit is contained in:
Alex Baptista 2017-11-28 19:31:35 -02:00
parent c36452a2c3
commit b83a0876b4

18
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,18 @@
node('Slave_AWS'){
stage('Checkout')
{
git 'https://github.com/spring-projects/spring-petclinic.git'
}
stage('Build')
{
sh 'docker run --rm --name build_maven -v $(pwd):/app docker.io/maven:alpine bash -c "cd app;mvn clean install"'
}
stage('Unit Test')
{
junit 'target/surefire-reports/*.xml'
}
stage('Archive artifact')
{
archiveArtifacts 'target/spring-petclinic-1.5.1.jar'
}
}