Skip to content

Commit

Permalink
ci(notification): Transfer all notifications to the newly created #ag…
Browse files Browse the repository at this point in the history
…ent-agent6-ops channel (#30761)
  • Loading branch information
chouetz authored Nov 5, 2024
1 parent 76c5fbd commit 6e87ada
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tasks/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from tasks.libs.datadog_api import create_count, send_metrics
from tasks.libs.pipeline_data import get_failed_jobs
from tasks.libs.pipeline_notifications import (
GITHUB_SLACK_MAP,
base_message,
check_for_missing_owners_slack_and_jira,
find_job_owners,
Expand Down Expand Up @@ -93,7 +92,7 @@ def send_message(_, notification_type="merge", print_to_stdout=False):

# Send messages
for owner, message in messages_to_send.items():
channel = GITHUB_SLACK_MAP.get(owner.lower(), None)
channel = "#agent-agent6-ops"
message.base_message = base
if channel is None:
channel = "#datadog-agent-pipelines"
Expand Down Expand Up @@ -304,7 +303,7 @@ def send_notification(alert_jobs):
jobs = ", ".join(f"`{j}`" for j in alert_jobs["cumulative"])
message += f"Job(s) {jobs} failed {CUMULATIVE_THRESHOLD} times in last {CUMULATIVE_LENGTH} executions.\n"
if message:
send_slack_message("#agent-platform-ops", message)
send_slack_message("#agent-agent6-ops", message)


@task
Expand Down

0 comments on commit 6e87ada

Please sign in to comment.