From 40a0a87e93666d67eb673a9c498612ac1b99df7f Mon Sep 17 00:00:00 2001 From: joe Date: Wed, 9 Aug 2017 17:22:18 -0600 Subject: [PATCH 1/5] test push --- foo.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 foo.txt diff --git a/foo.txt b/foo.txt new file mode 100644 index 000000000..6aae500bb --- /dev/null +++ b/foo.txt @@ -0,0 +1 @@ +asdkfjk From 1ddebc7fdc6af71b753e7df1f3645c06c695753b Mon Sep 17 00:00:00 2001 From: joe Date: Wed, 9 Aug 2017 17:23:56 -0600 Subject: [PATCH 2/5] added my pipeline script --- joespipeline | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 joespipeline diff --git a/joespipeline b/joespipeline new file mode 100644 index 000000000..e746be512 --- /dev/null +++ b/joespipeline @@ -0,0 +1,14 @@ +echo 'Hello from Pipeline Demo' + stage 'Compile' + node { + git url: 'https://github.com/mitesh51/spring-petclinic.git' + sh "/usr/bin/mvn -B compile" + } + stage 'Test' + node('TestServer') { + git url: 'https://github.com/mitesh51/spring-petclinic.git' + sh "/usr/bin/mvn -B verify" + + step([$class: 'ArtifactArchiver', artifacts: '**/target/*.war', fingerprint: true]) + step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml']) + } From cc21a072f2f879020fa9acef88f8cab8217bd8f9 Mon Sep 17 00:00:00 2001 From: joe Date: Wed, 9 Aug 2017 17:58:02 -0600 Subject: [PATCH 3/5] update joespipeline --- joespipeline | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/joespipeline b/joespipeline index e746be512..7eaf6a7ea 100644 --- a/joespipeline +++ b/joespipeline @@ -1,12 +1,12 @@ echo 'Hello from Pipeline Demo' stage 'Compile' node { - git url: 'https://github.com/mitesh51/spring-petclinic.git' + git url: 'https://github.com/nachofree/spring-petclinic.git' sh "/usr/bin/mvn -B compile" } stage 'Test' node('TestServer') { - git url: 'https://github.com/mitesh51/spring-petclinic.git' + git url: 'https://github.com/nachofree/spring-petclinic.git' sh "/usr/bin/mvn -B verify" step([$class: 'ArtifactArchiver', artifacts: '**/target/*.war', fingerprint: true]) From b3a4676780628fa628c670a346c97661cb427f87 Mon Sep 17 00:00:00 2001 From: joe Date: Thu, 10 Aug 2017 13:31:04 -0600 Subject: [PATCH 4/5] update joespipeline --- joespipeline | 1 - 1 file changed, 1 deletion(-) diff --git a/joespipeline b/joespipeline index 7eaf6a7ea..27917dfc2 100644 --- a/joespipeline +++ b/joespipeline @@ -10,5 +10,4 @@ echo 'Hello from Pipeline Demo' sh "/usr/bin/mvn -B verify" step([$class: 'ArtifactArchiver', artifacts: '**/target/*.war', fingerprint: true]) - step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml']) } From c4d09bba52f3ad9080c49b8a41071e051493cebf Mon Sep 17 00:00:00 2001 From: joe Date: Thu, 10 Aug 2017 13:37:51 -0600 Subject: [PATCH 5/5] back to main node --- joespipeline | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/joespipeline b/joespipeline index 27917dfc2..c659ba26a 100644 --- a/joespipeline +++ b/joespipeline @@ -5,9 +5,10 @@ echo 'Hello from Pipeline Demo' sh "/usr/bin/mvn -B compile" } stage 'Test' - node('TestServer') { + node{ git url: 'https://github.com/nachofree/spring-petclinic.git' sh "/usr/bin/mvn -B verify" step([$class: 'ArtifactArchiver', artifacts: '**/target/*.war', fingerprint: true]) + step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml']) }