From b83a0876b4bce53d58de900433b446109e1588b6 Mon Sep 17 00:00:00 2001 From: Alex Baptista Date: Tue, 28 Nov 2017 19:31:35 -0200 Subject: [PATCH] Add initial jenkinsfile --- Jenkinsfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..ff005bfeb --- /dev/null +++ b/Jenkinsfile @@ -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' + } +}