This commit is contained in:
shaifalikhan5 2023-07-29 08:04:21 +00:00 committed by GitHub
commit 3a3435d773
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

32
Jenkinsfile vendored Normal file
View file

@ -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'
}
}
}
}