mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
ci(ftr): notify owners in the slack message when failures (#205260)
This commit is contained in:
parent
ae6d046319
commit
acc5e039ba
2 changed files with 12 additions and 0 deletions
|
@ -37,6 +37,8 @@ steps:
|
|||
machineType: n2-standard-4
|
||||
preemptible: true
|
||||
depends_on: build
|
||||
env:
|
||||
PING_SLACK_TEAM: "@obs-ux-infra_services-team"
|
||||
timeout_in_minutes: 120
|
||||
retry:
|
||||
automatic:
|
||||
|
@ -54,6 +56,8 @@ steps:
|
|||
machineType: n2-standard-4
|
||||
preemptible: true
|
||||
depends_on: build
|
||||
env:
|
||||
PING_SLACK_TEAM: "@obs-ux-infra_services-team"
|
||||
timeout_in_minutes: 120
|
||||
retry:
|
||||
automatic:
|
||||
|
|
|
@ -52,4 +52,12 @@ if [[ "$IS_TEST_EXECUTION_STEP" == "true" ]]; then
|
|||
buildkite-agent artifact upload 'target/test_failures/**/*'
|
||||
ts-node .buildkite/scripts/lifecycle/annotate_test_failures.ts
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
if [[ $BUILDKITE_COMMAND_EXIT_STATUS -ne 0 ]]; then
|
||||
# If the slack team environment variable is set, ping the team in slack
|
||||
if [ -n "${PING_SLACK_TEAM:-}" ]; then
|
||||
buildkite-agent meta-data set 'slack:ping_team:body' "${PING_SLACK_TEAM}, can you please take a look at the test failures?"
|
||||
fi
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue