mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 06:45:50 +00:00
Jenkins Pipeline Declarative CICD Flow
This commit is contained in:
parent
a06cfdaf2b
commit
38873c5ab6
1 changed files with 31 additions and 0 deletions
31
Jenkinsfile
vendored
Normal file
31
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
// Jenkins Pipeline Declarative CICD Flow
|
||||
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
|
||||
stage("build") {
|
||||
steps {
|
||||
sh "./mvnw package"
|
||||
}
|
||||
}
|
||||
|
||||
stage("artifact") {
|
||||
steps {
|
||||
archiveArtifacts '**/target/*.jar'
|
||||
jacoco()
|
||||
junit '**/target/surefire-reports/TEST*.xml'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// post actions
|
||||
post {
|
||||
always {
|
||||
emailext body: 'Test Message',
|
||||
recipientProviders: [developers(), requestor()],
|
||||
subject: 'Test Subject',
|
||||
to: 'test@example.com'
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue