From c95efc5e7cc742902f953e1aa6e277803912620f Mon Sep 17 00:00:00 2001 From: dbmuse Date: Fri, 29 Dec 2017 06:50:51 -0500 Subject: [PATCH 1/2] Add Jenkinsfile --- JenkinsFile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 JenkinsFile diff --git a/JenkinsFile b/JenkinsFile new file mode 100644 index 000000000..8200b1400 --- /dev/null +++ b/JenkinsFile @@ -0,0 +1,16 @@ +pipeline{ + agent { docker 'maven:3.5.2-alpine' } + stages { + stage ('Checkout') { + steps { + git 'https://github.com/dbmuse/spring-petclinic.git' + } + } + stage ('Build') { + steps { + sh 'mvn clean package' + junit '**/target/surefire-reports/Test-*.xml' + } + } + } +} \ No newline at end of file From 0d6662e831c863b37384f2ac0653543fcf9d29e7 Mon Sep 17 00:00:00 2001 From: dbmuse Date: Fri, 29 Dec 2017 08:17:36 -0500 Subject: [PATCH 2/2] remove build step from jenkinsfile --- JenkinsFile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/JenkinsFile b/JenkinsFile index 8200b1400..ae10c82b2 100644 --- a/JenkinsFile +++ b/JenkinsFile @@ -6,11 +6,6 @@ pipeline{ git 'https://github.com/dbmuse/spring-petclinic.git' } } - stage ('Build') { - steps { - sh 'mvn clean package' - junit '**/target/surefire-reports/Test-*.xml' - } - } + } } \ No newline at end of file