jenkins goup
jenkins goup

Reputation: 41

Build promotion using jenkins upon servicenow change request approval

Build promotion using jenkins upon servicenow change request approval

I need to promote my build to production environment only when my change request# "CHXXXX" has approved? How to achieve this using Jenkins/Servicenow integration? Please guide me. Thanks in advance.

Upvotes: 1

Views: 1768

Answers (1)

Valor
Valor

Reputation: 353

Typically this is handled by using a "run script" activity in ServiceNow's change workflow.

In your case, you'd have to do the following:

  1. Set up your Jenkins Web service in ServiceNow (REST Web Service Tutorial)
  2. Capture somewhere the Jenkins Pipeline to run (recommendation: on the Configuration Item)
  3. Add the "run script" activity to your Change Management approval workflow in ServiceNow to call the Jenkins API after approval has been granted. You could even introduce a timer to wait until the "planned start" time.
  4. Make sure you capture the Jenkins result / output in your Change ticket for reference.

Upvotes: 1

Related Questions