opensupplyhub / open-apparel-registry

An application for searching, matching, uploading factories.
MIT License
32 stars 13 forks source link

Slack notification failure #2027

Closed nanotubing closed 2 years ago

nanotubing commented 2 years ago

Overview

I just pushed an ogr/test branch which failed for reasons unrelated to this issue, but the failure notification was not delivered to slack. This error was in the console output section of jenkins

Slack Send Pipeline step running, values are - baseUrl: https://azavea.slack.com/services/hooks/jenkins-ci/, teamDomain: azavea, channel: #oar, color: danger, botUser: false, tokenCredentialId: Slack token, notifyCommitters: false, iconEmoji: <empty>, username: <empty>, timestamp: <empty>
ERROR: Slack notification failed. See Jenkins logs for details.
nanotubing commented 2 years ago

I think I've figured this out. On August second, I archived the slack channel #civicapps-updates, since it had not been used in some time. This also disabled the instance of the slack-created jenkins plugin tied to that channel, and the corresponding API key.

We do not use this plugin, we use the one written by jenkins, but that plugin uses the API key created when enabling the slack version, so it needs to be turned on, even if it's not being used. I've re-enabled this integration, and directed it to a channel used by the operations team.

In addition to this project, this may have affected other projects running on the same jenkins server. I've confirmed that jenkins build notifications are now being delivered to slack on this and another affected project.

This thread was helpful in getting me started looking in the right direction