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