mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-24 00:35:49 +00:00
Merge 07f1b17950
into 0a529015bc
This commit is contained in:
commit
3a3435d773
1 changed files with 32 additions and 0 deletions
32
Jenkinsfile
vendored
Normal file
32
Jenkinsfile
vendored
Normal 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'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue