mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:05:50 +00:00
Mail Attempt
This commit is contained in:
parent
2ca0cd7914
commit
ac21f6d5e1
1 changed files with 27 additions and 28 deletions
55
Jenkinsfile
vendored
55
Jenkinsfile
vendored
|
@ -4,34 +4,33 @@ pipeline {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
bat './mvnw package'
|
bat './mvnw package'
|
||||||
|
mail(subject: 'Build Test', body: 'Attempt 1', to: 'jessica.allaire.96@hotmail.com')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Test') {
|
|
||||||
steps {
|
stage('Test') {
|
||||||
echo 'Testing'
|
steps {
|
||||||
}
|
echo 'Testing'
|
||||||
}
|
}
|
||||||
stage('Package') {
|
|
||||||
steps {
|
|
||||||
echo 'Package'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Deploy') {
|
|
||||||
when {
|
|
||||||
expression {
|
|
||||||
GIT_BRANCH == 'master'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
echo 'Deploy'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
failure {
|
|
||||||
mail to: 'jessica.allaire.96@hotmail.com',
|
|
||||||
subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
|
|
||||||
body: "Something is wrong with ${env.BUILD_URL}"
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
stage('Package') {
|
||||||
|
steps {
|
||||||
|
echo 'Package'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Deploy') {
|
||||||
|
when {
|
||||||
|
expression {
|
||||||
|
GIT_BRANCH == 'master'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
echo 'Deploy'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue