mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 17:15:48 +00:00
added in diclarative way
This commit is contained in:
parent
0a529015bc
commit
1f71b59f03
1 changed files with 37 additions and 0 deletions
37
Jenkinsfile
vendored
Normal file
37
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
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: 'develop'
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('build and packaging') {
|
||||||
|
steps {
|
||||||
|
sh script: 'mvn package'
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
stage('reporting') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts artifacts : '**/target/sprigpetclinic-*.jar'
|
||||||
|
junit testResults : '**/surefire-reports/**.xml'
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue