diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..d4acd57e6 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,32 @@ +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: 'developer' + } + } + stage('build and package') { + steps { + sh script: 'mvn package' + } + } + stage('reporting') { + steps { + archiveArtifacts artifacts: '**/target/springpetclinic-*.jar' + junit testResults: '**/target/surefire-reports/TEST-*.xml' + } + } + } + +}