mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 16:25:49 +00:00
added daybuild for jenkins in declarative pipeline
This commit is contained in:
parent
3be289517d
commit
b4e06f4e8b
1 changed files with 32 additions and 0 deletions
32
jenkinsfile
Normal file
32
jenkinsfile
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
pipeline {
|
||||||
|
agent{label 'jdk_17'}
|
||||||
|
options {
|
||||||
|
timeout(time: 30, unit: 'MINUTES')
|
||||||
|
}
|
||||||
|
triggers {
|
||||||
|
pollSCM('* * * * *')
|
||||||
|
}
|
||||||
|
tools {
|
||||||
|
jdk 'JDK_17'
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('vcs') {
|
||||||
|
steps {
|
||||||
|
git url: 'https://github.com/Thanushakonda/spring-petclinic.git',
|
||||||
|
branch: 'devolop'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('build and package') {
|
||||||
|
steps {
|
||||||
|
sh script: 'mvn package'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
stage('reporting') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts artifacts: '**/target/spring-petclinic-*.jar',
|
||||||
|
junit testResults: '**/target/surefire-reports/TEST-*.xml'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue