Jenkins v2 Spoke - Requested information for Jenkins Webhook

Gintarelissss98
Tera Contributor

Hello,

 

I have a request to send data in JSON format to the Jenkins webhook when a catalog task is created. Is there a way to utilize the Jenkins v2 Spoke, or would using a REST message be the suitable solution? I have tried the Jenkins spoke, but I couldn't find a way to establish a connection with the provided webhook and initiate an HTTP POST request to it.

Thank you for your support.

 

Best regards,

Amber

1 ACCEPTED SOLUTION

Hi,

To my knowledge in the generic scenario, you will not be able to send data using the webhook. We need to use REST to send the data; we may also need the MID server in some scenarios.

 

Thanks,

Shriram


BR,
Shriram Joshi

---------------------------------------------------------------------------------------------

Mark this as Helpful / Accept the Solution if this helps.

View solution in original post

4 REPLIES 4

Shriram Joshi
Tera Guru
Tera Guru

Hi @Gintarelissss98 ,

 

Please check this article, hope this will help you to establish the connection.

 

https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/integrationhub-store-spo...

 

 

Thankyou,

Shriram


BR,
Shriram Joshi

---------------------------------------------------------------------------------------------

Mark this as Helpful / Accept the Solution if this helps.

Hi! It should be an HTTP POST request from ServiceNow to the Jenkins webhook including the data sets as a JSON format. This document describes how to receive updates from Jenkins on ServiceNow using the Jenkins spoke. Therefore, I have a question about whether we can utilize this spoke to send data from ServiceNow to Jenkins webhook in the opposite direction.

Gintarelissss98
Tera Contributor

Hi! It should be an HTTP POST request from ServiceNow to the Jenkins webhook including the data sets as a JSON format. This document describes how to receive updates from Jenkins on ServiceNow using the Jenkins spoke. Therefore, I have a question about whether we can utilize this spoke to send data from ServiceNow to Jenkins webhook in the opposite direction. Thanks 

Hi,

To my knowledge in the generic scenario, you will not be able to send data using the webhook. We need to use REST to send the data; we may also need the MID server in some scenarios.

 

Thanks,

Shriram


BR,
Shriram Joshi

---------------------------------------------------------------------------------------------

Mark this as Helpful / Accept the Solution if this helps.