1

I am working on an automated change request (CR) validator as a Jenkins job. The job receives the CR id as a parameter and validates the fields of the CR in Jazz (RTC). The outcome of the Jenkins job is successful if the CR is in "good state" or failed if the CR is in "bad state".

I'd like to find a way to automatically trigger this job from a Slack channel based on the conversation. For example, if a user says "CR 123456" on a certain channel on Slack, the Jenkins job would be automatically triggered with CR 123456 as a parameter.

I looked at the Jenkins bot for this but couldn't find this type of functionality.

MisterStrickland
  • 947
  • 1
  • 15
  • 35
  • 1
    Hubot or StackStorm could help, which would allow to trigger the job using the REST API. – StephenKing Aug 25 '17 at 20:21
  • 1
    Sure, that should be easy to do with Slack. Just make you own Slack app using the slash command feature and connect it to Jenkins. however your question is too broad for this site. I therefore recommend checking out the tutorials on Slack that give a good starting point if you want to learn about how to make a Slack app. https://api.slack.com/tutorials – Erik Kalkoken Aug 28 '17 at 09:58

0 Answers0