ServiceNow CICD plugin for Jenkins

Meghana B Srina
Kilo Contributor

I was trying out ServiceNow CICD plugin in jenkins by following the documents as per links here[1][2][3]. I have done the setup according to this and the pipeline is getting triggered in jenkins. However, in snPublishApp(), the stage is giving the below error:

START: ServiceNow - Publish the specified application
java.lang.NullPointerException
Checking progress..
Publishing DONE but failed: SNC apps must be registered before upload to AppRepo

If I try to manually publish the app from the ServiceNow studio, I get this error:

"Internal and Store Uploading has been disabled. Please contact your instance administrator."

Is the publishing not allowed since I'm using a Personal Developer Instance (PDI)?

I also tried snInstallApp() stage by passing the publishedAppVersion as a parameter in Jenkinsfile with global scope. But that also ends with the error below:

START: ServiceNow - Install the specified application (version: 1.0)
Error occurred when installation of the application was requested: A Custom Application record with the requested scope is already present on the instance. Convert to a Store Application via the Custom Application form in order to install new versions from Application Repository.

Is there anything that I'm missing? How do I get the app published on the PDI?

8 REPLIES 8

Hi @Meghana B Srinath ,

Thanks for your quick response.

However, In my use-case I need to push the data from Jenkins to Servicenow using some API calls. But I am not sure which API could help me in doing this and how/where does actually the data will gets stored.

Like for example, I need to store the data of Checkout, Build, Test stage in Servicenow.

Also, Not very confident if I need a jenkins plugin in case of API calls.

Hi @kapil kaushal 

 

Not sure if this is what you are looking for- https://github.com/jenkinsci/service-now-plugin

Hi @Meghana B Srinath 

I have gone through this CICD plugin but not sure how to implement it.

In my use-case I need to use some API that could help me to publish the jenkins data of multiple stages into ServiceNow. Instead of configuring any credentials or connections in Servicenow to discover the the data from there. 

However, I am not sure of the API that could be used to achieve this.

Kindly advise if you have any idea as per my use-case

@kapil kaushal let come to basics here-

In my use-case I need to use some API that could help me to publish the jenkins data of multiple stages into ServiceNow.---> This will be held in some of the servicenow tables which will come with Service Now DevOps Application

Instead of configuring any credentials or connections in Servicenow to discover the the data from there.--> Its fine but you need to explore the data of Jenkins and Service Now Dev Ops Table so that you can map the data if you do not want to use OOTB Integration. 

Regards

RP