Skip to content

Commit

Permalink
Seed jobs: Notify is job recovered
Browse files Browse the repository at this point in the history
  • Loading branch information
radtriste authored Aug 7, 2023
1 parent b2b6cab commit f77a779
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dsl/seed/jenkinsfiles/Jenkinsfile.seed.branch
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,15 @@ pipeline {
to: env.KOGITO_CI_EMAIL_TO
}
}
success {
script {
if (!("SUCCESS".equals(currentBuild.previousBuild.result))) {
emailext body: "**Seed job #${BUILD_NUMBER} recovered and finished successfully",
subject: "[${GENERATION_BRANCH}] Seed",
to: env.KOGITO_CI_EMAIL_TO
}
}
}
}
}

Expand Down
9 changes: 9 additions & 0 deletions dsl/seed/jenkinsfiles/Jenkinsfile.seed.main
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,15 @@ pipeline {
to: env.KOGITO_CI_EMAIL_TO
}
}
success {
script {
if (!("SUCCESS".equals(currentBuild.previousBuild.result))) {
emailext body: "**Seed job #${BUILD_NUMBER} recovered and finished successfully",
subject: "[${GENERATION_BRANCH}] Seed",
to: env.KOGITO_CI_EMAIL_TO
}
}
}
}
}

Expand Down

0 comments on commit f77a779

Please sign in to comment.