ServiceNow CICD plugin for Jenkins
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2022 07:41 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2022 07:52 AM
Hi
Refer to these docs:
https://www.jenkins.io/doc/pipeline/steps/servicenow-cicd/
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2022 12:00 AM
Hi
I have followed these documents and have ended up with the situation mentioned in my first post. Though snApplyChanges is working, its failing at snPublishApp. Is it because I have the PDI and publishing is not supported in the free instance? If that is the case, is there any workaround to go about this?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2022 11:20 PM
Hi
I am also trying to integrate jenkins with servicenow. however, the approach that I was thinking is instead of using any jenkins pluging and service now pulling the pipeline details from jenkins I could use some native API in jenkins itself to push the data into servicenow as per the requirement.
Appreciate If you could suggest your thoughts on this and also if you could share some details of your setup with the process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2022 08:48 AM
Hi
We are also exploring servicenow newly and havent tried many scenarios as such. You could look into Servicenow CICD plugin available in jenkins to see if that can help your case. However, what we were trying is detailed in this video-https://www.youtube.com/watch?v=-FDdQ_ZgWGw