mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
added email notification steps
This commit is contained in:
parent
c4b07711a2
commit
91201a4b58
1 changed files with 15 additions and 2 deletions
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
|
@ -17,9 +17,22 @@ pipeline{
|
|||
steps{
|
||||
withSonarQubeEnv('SONAR_CLOUD'){
|
||||
sh 'mvn clean verify sonar:sonar -Dsonar.organization=springgit -Dsonar.projectKey=springgit'
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post{
|
||||
success{
|
||||
mail subject : 'Jenkins job of ${JOB_NAME} of build numer ${BUILD_ID} is passed',
|
||||
body : 'Click Here to see more details ${BUILD_URL}',
|
||||
from : 'jenkins@outlook.com'
|
||||
to : 'abhishek16tiwary@gmail.com'
|
||||
}
|
||||
failure{
|
||||
mail subject : 'Jenkins job of ${JOB_NAME} of build numer ${BUILD_ID} is Failed',
|
||||
body : 'Click Here to see more details ${BUILD_URL}',
|
||||
from : 'jenkins@outlook.com'
|
||||
to : 'abhishek16tiwary@gmail.com'
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue