From 6044671bdd9025f8c79e4ae3e94ded65e5c9e8f3 Mon Sep 17 00:00:00 2001 From: nagasuribabukola Date: Tue, 3 Oct 2023 21:18:52 +0530 Subject: [PATCH] added jenkinsfile added fix --- Jenkinsfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..17a1709c7 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,27 @@ +pipeline { + agent any + triggers { pollSCM('* * * * *')} + stages { + stage('VCS'){ + steps { + git url: 'https://github.com/dumyrepositories/spring-petclinic-multibranch.git', + branch: 'main' + } + } + + stage('Build'){ + steps { + sh 'mvn package' + } + } + + stage('Post Build') { + steps { + archiveArtifacts artifacts: '**/target/*.jar', + onlyIfSuccessful: true + junit testResults: '**/surefire-reports/TEST-*.xml', + allowEmptyResults: false + } + } + } +} \ No newline at end of file