Closed AnotherStream closed 4 years ago
Try remove your baseUrl
entry
I confirmed in other issues that baseUrl and teamDomain should not be set at the same time. Therefore, baseUrl is not specified in the slackSend parameter as above. I haven't set it up, but the Jenkins console output seems to be running with baseUrl set.
I tried the following, but baseUrl was automatically interpolated.
def response = slackSend( tokenCredentialId: 'SLACK_APP_BOT_USER_OAUTH_ACCESS_TOKEN', channel: channel, baseUrl: null, teamDomain: teamDomain, message: "${message} Thread Root", botUser: true, )
I don't explicitly specify it as a parameter. How can I remove baseUrl?
Are you sure it's not set globally? It won't be set by default
I'm sorry. Confirmation leaked because it was hidden below the advanced settings.
BaseUrl was set in Jenkins settings.
By removing this, it was confirmed that SlackResponse was returned and that the threadId was set. Thank you very much.
Your checklist for this issue
Jenkins ver 2.200
Slack Notification Plugin ver 2.34
macOS 10.14.6
Description
I want to make a thread posting to Slak using threadId with slackSend step.
I referred to the following site and other issues related to threading.
https://edekler.nl/api-mngmt/enabling-threaded-slack-messages-while-using-the-jenkins-slack-plugin/
Would you give me some advice?
I created a Slack Custom App on Slack and generated a Slack App Bot User OAuth Access Token. I registered this token in Jenkins Credentials in the Secret Text format with the ID name SLACK_APP_BOT_USER_OAUTH_ACCESS_TOKEN.
And I called it with slackSend as follows.The return value SlackResponse object returns null. Is there anything wrong with it?
Code
The following error is output to the Jenkins console.
Console Output
The system log shows the following output.
Jenkins System Log