From 1ddebc7fdc6af71b753e7df1f3645c06c695753b Mon Sep 17 00:00:00 2001 From: joe Date: Wed, 9 Aug 2017 17:23:56 -0600 Subject: [PATCH] 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']) + }