mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 16:25:49 +00:00
vinod
This commit is contained in:
parent
0a529015bc
commit
8b5bbc5aa4
1 changed files with 31 additions and 0 deletions
31
jenkinsfile
Normal file
31
jenkinsfile
Normal file
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue