From c060525d9a6a38885754b61d160bdb4cf2ca46c2 Mon Sep 17 00:00:00 2001 From: ammer Date: Mon, 6 Mar 2023 23:05:50 -0800 Subject: [PATCH] aad --- spc.main | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 spc.main diff --git a/spc.main b/spc.main new file mode 100644 index 000000000..3feb6a958 --- /dev/null +++ b/spc.main @@ -0,0 +1,24 @@ +pipeline { + agent { label 'MAVEN_JDK8' } + triggers: { pollSCM ('* 21 * * 1-5') } + stages { + stage('vcs') { + steps { + git url: 'https://github.com/arjun9963/spring-petclinic.git', + branch: 'dev' + } + } + stage('package') { + steps { + sh 'mvn package' + } + } + stage('post build') { + steps { + archiveArtifacts artifacts: '**/target/spring-petclinic.war', + onlyIfSuccessful: true + junit testResults: '**/surefire-reports/TEST-*.xml' + } + } + } +} \ No newline at end of file