Jenkins Integration with Service Now

kapil kaushal
Kilo Explorer

Hi Team , 

I am new to Service now and seeking some guidance for integration between Jenkins & Service Now.

I have gone through the documentation and came to understand some of the basic concepts for setting up the connection between Jenkins and Service Now. However , I have some queries related to this scenario.

Currently , I am using the Jenkins Agents on which my pipeline is getting executed and the Jenkins agent is setup at On-Premise. I have couple of pipeline getting executed including CI , CD , CI/CD. Those pipelines are created using groovy scripts. Now , I am exploring if there is any API call that could be used in my existing groovy scripts to communicate with Service now. 

Below is my understanding and queries I need some guidance on : 

  1. To proceed with this integration , Do I need to Install the Service now plugin in my Jenkins Agent ? 
  2. In my scenario , I need my jenkins to communicate with Service now when required Instead Service now connecting to jenkins. For this I understand that I could use some API Calls but not sure of the API that can be used in the groovy script for achieving this. 
  3. If there is any other configuration or alternative option I could perform for this type of connectivity then please suggest.

Appreciate for your quick response on this.

Regard,

Kapil 

5 REPLIES 5

Rahul Priyadars
Giga Sage
Giga Sage

Please refer this servicenow Video It will answer few of ur queries

https://www.youtube.com/watch?v=JlDV9JAFYNg

 

(2) In my scenario , I need my jenkins to communicate with Service now when required Instead Service now connecting to jenkins. For this I understand that I could use some API Calls but not sure of the API that can be used in the groovy script for achieving this---->

GROOVY SCRIPT expert can answer this how to make a REST Call to Other system.

Other 2 points will be covered in Video

Regards

RP

Hi @Rahul Priyadarshy ,

I gone through the video and it seems like I need to have the jenkins plugin. However, the approach that I am trying is to have any native api call from jenkins to service now and in this case I am not sure if I need any plugin or not. 

Kindy advise.

for native API calls you do not need Plugin i think.

Jenkin (outbound) will do a call to service now (inbound) using NATIVE API Call.

its as good as a plain REST API Based Integration.

Regards

RP

Thanks for the quick response.

So, If I want to store some data in Service now using jenkins then where the data gets stored in SN. 

I Just tried to create pipeline in jenkins which is just printing Hello World and using a Curl command in the post build actions but not sure where does that Hello World statement would appear in Service Now. 

What process I need to follow to store the Jenkins Metadata in Service now.

Kindly advise.

 

Regards,

Kapil