Create gradle-decl-jenkins

Added jenkins Declarative pipeline
This commit is contained in:
SHAIK.SOHAIL 2023-03-04 16:36:22 +05:30 committed by GitHub
parent 690094d3af
commit 9ef6b4a3bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
gradle-decl-jenkins Normal file
View 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'
}
}
}
}
}