jenkinsci / slack-plugin

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

Issue with uploading files. #749

Open sylwek845 opened 3 years ago

sylwek845 commented 3 years ago

Your checklist for this issue

Description

I'm having trouble with uploading files into slack. Seems to be working just fine when the file size is around 20Mb, but if I try around 50mb it says that it was successful, but no file was uploaded. Our internet is slow when it comes to uploading, is there a timeout perhaps?

timja commented 3 years ago

does it work for you via curl? is there anything in the logs?

gandadil commented 3 years ago

I have a similar problem. When a declarative pipeline to send file to a channel I can't see the file. I have upload several diferent files and nothing, but if I use threadId, I can upload a file and it have 140Mbytes! I suspect that the problem is with channel name that have special chars but i can use slackSend method without any problem.

This works: slackUploadFile channel: slackResponse.threadId, credentialId: 'jenkins_contmatic_gestaosst', filePath: 'report.zip'

This not:

slackUploadFile channel: '#report-automação', credentialId: 'jenkins_contmatic_gestaosst', filePath: 'report.zip'

gandadil commented 3 years ago

Today I need to send a report file to other workspace and I have the same problem again. I need to send the file into conversation again because into thread it`s not working. This is not occuring in free style project, only on pipeline. Maybe slackUploadFile need a parameter to define the workspace? Because just slackSend have this parameter.