From de6404049612a1084f92a9a5996cf3644cc6b279 Mon Sep 17 00:00:00 2001 From: siddhaantkadu Date: Mon, 11 Dec 2023 21:30:13 +0530 Subject: [PATCH] added Jenkinsfile --- Jenkinsfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..a275286b9 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,30 @@ +pipeline { + agent { lebal 'MAVEN' } + options { + timeout(time: 1, unit: 'HOURS') + } + triggers { + pollSCM(* * * * *) + } + stages { + stage('git') { + steps { + git url: 'https://github.com/siddhaantkadu/spring-petclinic.git', + branch: 'dev' + } + } + stage('build') { + steps { + sh 'mvn clean package' + } + post { + success { + archiveArtifacts artifacts: '**/spring-petclinic-*.jar' + } + always { + junit testResults: '**/TEST-*.xml' + } + } + } + } +}