-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slacksend returns null response #776
Comments
did you setup a custom slack app? |
No could you guide me to setup
…On Wed, Sep 8, 2021, 14:56 Tim Jacomb ***@***.***> wrote:
did you setup a custom slack app?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#776 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJDDK34LYDXXW5HNLT44JL3UA4T4ZANCNFSM5DUH4WXQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Hi Timja Response is null |
slackResponse = slackSend (baseUrl : slackURL, |
Anything in the logs? Have you invited the app to the channel? |
Yes invited |
there's more features in the bot users so it is recommended. The 'legacy' one has not been updated by Slack in a long time |
if it is set then it will impact the flow which use legacy app? |
not if you leave botUser off globally and only enable it in the jobs you need it. |
how to set globally off for botUser and enable in job level |
Jenkins and plugins versions report:
Jenkins 2.263.2
Slack plugin 2.48
slackResponse = slackSend (baseUrl : slackURL,
teamDomain:'myteam',
channel: slackChannel,
message: 'Hello, world',
iconEmoji: 'jenkins',
botUser: 'false',
token: slackToken,
username: 'Jenkins')
sh"""
echo ${slackResponse}
echo ${slackResponse.channelId} // channelid is null
echo ${slackResponse.ts} // ts is also null
"""
jenkis logs
jenkins.plugins.slack.workflow.SlackResponse@1f6401de
null
null
The text was updated successfully, but these errors were encountered: