Skip to content

Commit

Permalink
Seed jobs: Notify if job recovered (#1028)
Browse files Browse the repository at this point in the history
  • Loading branch information
radtriste authored Aug 7, 2023
1 parent 057bf8e commit 6d4ae20
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 6d4ae20

Please sign in to comment.