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']) + }