mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 01:45:49 +00:00
Create gradle-decl-jenkins
Added jenkins Declarative pipeline
This commit is contained in:
parent
690094d3af
commit
9ef6b4a3bb
1 changed files with 20 additions and 0 deletions
20
gradle-decl-jenkins
Normal file
20
gradle-decl-jenkins
Normal file
|
@ -0,0 +1,20 @@
|
|||
pipeline{
|
||||
agent any
|
||||
|
||||
stages{
|
||||
stage ('build') {
|
||||
steps {
|
||||
git branch: 'main',
|
||||
url: 'https://github.com/shaiksohail11/spring-petclinic.git'
|
||||
sh './gradlew build'
|
||||
}
|
||||
post {
|
||||
|
||||
success {
|
||||
junit '**/test-results/test/TEST-*.xml'
|
||||
archiveArtifacts '**/libs/spring-petclinic-3.0.0.jar'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue