Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-29844

Fix Jenkins-to-Slack connection

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: jenkins
    • Labels:
      None
    • Team:
      SQuaRE
    • Urgent?:
      No

      Description

      Since the Jenkins reboot on Monday, it has been unable to post Slack notifications.

      The error message is failed to send message: [ok:false, error:token_revoked]

      The token in question appears to be SLACK_TOKEN. This corresponds to the Jenkins credential item slack-lsstc-token.

      Please fix the Slack interface, perhaps by refreshing this token.

        Attachments

          Activity

          Hide
          athornton Adam Thornton added a comment -

          I switched back to sqrbot xoxb token. I don't think this will work either but at least it might get us back to GET working?

          Show
          athornton Adam Thornton added a comment - I switched back to sqrbot xoxb token. I don't think this will work either but at least it might get us back to GET working?
          Hide
          athornton Adam Thornton added a comment -

          Better news: we generated a new-style token, and KT found docs that it can no longer go in the URL parameters, but `Authorization: Bearer $TOKEN` seems to work.

          Show
          athornton Adam Thornton added a comment - Better news: we generated a new-style token, and KT found docs that it can no longer go in the URL parameters, but `Authorization: Bearer $TOKEN` seems to work.
          Hide
          ktl Kian-Tat Lim added a comment -

          Followed the pre-existing example for POST requests.

          Show
          ktl Kian-Tat Lim added a comment - Followed the pre-existing example for POST requests.
          Hide
          ktl Kian-Tat Lim added a comment -

          Reviewed on the PR.

          Show
          ktl Kian-Tat Lim added a comment - Reviewed on the PR.
          Hide
          ktl Kian-Tat Lim added a comment -

          And it actually works!  (Once I replaced the token with the new app token that Adam gave me.)

          Show
          ktl Kian-Tat Lim added a comment - And it actually works!  (Once I replaced the token with the new app token that Adam gave me.)

            People

            Assignee:
            ktl Kian-Tat Lim
            Reporter:
            ktl Kian-Tat Lim
            Reviewers:
            Adam Thornton
            Watchers:
            Adam Thornton, Frossie Economou, Kian-Tat Lim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.