jenkinsci / slack-plugin

A Jenkins plugin for posting notifications to a Slack channel
https://plugins.jenkins.io/slack/
672 stars 413 forks source link

channel_not_found when trying to upload a file on a slack thread #970

Closed dcarabott closed 1 month ago

dcarabott commented 1 month ago

Jenkins and plugins versions report

Environment ```text Jenkins `2.454` slack-plugin `715.v1cfed1b_9c63c` ```

What Operating System are you using (both controller, and any agents involved in the problem)?

Linux

Reproduction steps

Expected Results

Correct file upload on the specified channel

Actual Results

Slack upload may have failed. Response: {"ok":false,"error":"channel_not_found"}

Anything else?

Can confirm the channel name is correct. This was working around 7 days ago (7th of May 2024). Updated to version 715.v1cfed1b_9c63c but the problem persists.

Forcing the channel id worked ok.

Example: slackUploadFile(channel: "#C066HJWF8KC:1715686740.441889", filePath: "${f.path}") (works ok)

Are you interested in contributing a fix?

No response

dcarabott commented 1 month ago

Added 2 scopes to the app config and it worked fine!