diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 000000000..dfaa342ff --- /dev/null +++ b/jenkinsfile @@ -0,0 +1,31 @@ +pipeline { + stage { label JDK-17} + options { + timeout(time: 30, unit: 'MINUTES') + } + triggers { + pollscm ('* * * * *') + } + tools { + 'JDK-17' + } + stages { + stage('vcs') { + steps { + git url: 'https://github.com/KVKR31/dummy.git', + branch: 'main' + } + } + stage('build and package') { + steps { + sh script: 'mvn package' + } + } + stage('reportind') { + steps { + archiveArtifacts artifacts: '**/target/springpetclinic-*.jar' + junit testResults: '**/target/surefire-reports/TEST-*.xml' + } + } + } +}