Search code examples
restjenkinsjenkins-clislack-api

Calling Jenkins from Slack slash command


Is there a way to make a REST API call from Slack? I can use Slash Commands to make GET/POST requests, but it seems I can't pass additional header parameters in the header.

I am trying to invoke a remote Jenkins script which requires passing the API token to authenticate the user. I don't want to write a middleware service between Slack and Jenkins.


Solution

  • I ended up writing a Node.js middleware.