diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..ff93fe171 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,37 @@ +pipeline { + agent any + options { + timeout(time: 30, unit: 'MINUTES') + } + triggers { + pollSCM(* * * * *) + } + tools { + jdk 'JDK_17' + } + stages { + stage('vcs') { + steps { + git url: 'https://github.com/shaifalikhan5/spring-petclinic.git', + branch: 'develop' + + } + } + stage('build and packaging') { + steps { + sh script: 'mvn package' + + } + + } + stage('reporting') { + steps { + archiveArtifacts artifacts : '**/target/sprigpetclinic-*.jar' + junit testResults : '**/surefire-reports/**.xml' + + } + + } + } + +} \ No newline at end of file