Unable to link application to Source control in Studio

mareks_p
Giga Contributor

I am using this application

GitHub - jmbauguess/UnitTestNOW: ServiceNow Unit Testing util for server side scripts

in SN, imported as update set.

When I tried to store it in my git repo, I got an error:

This application cannot be exported because it is in the global scope. Because they can contain critical components of the core platform, globally scoped applications are not presently safe to use with source control.

Why it happens and is it possible to change scope and save application in git.

Mareks

12 REPLIES 12

Chuck Tomasi
Tera Patron

Hi Mareks,



Global applications are not available to store in ServiceNow. The author published this via GIT as an entire update set - that is not the same as Source Control (an integration to Git.) There is one key reason that global apps are not available for Source Control - because when you switch branches or uninstall, it does a "rip-and-replace" to get a new version installed. It's conceivable that you could disable the system by having the wrong files in your application be deleted by this process.



Again, reach out to the author and see if they have updated, or plan to update, this app to a scoped app which you can then fork on GitHub and install.


Well...I hadn't planned on updating it...but I'll make an attempt later this year at it.   There's actually a new feature to it where I group the test results a little better, anyway.   But, I've been slacking on my extracurricular ServiceNow activities as of late.



I answered an email from Mareks directly, but I'll put the highlights here in case anyone else is curious:



I made this as a scoped app, but I used the "Publish to Update Set..." UI action on it.   I guess I can add source control and try moving this along.


If it's a scoped app, he should be able to commit it, then add it to Git. The error message is stating that it's in the global scope.


I added screenshot where we see that application is in global Scope.2016-12-06 09_30_01-UnitTestNOW _ ServiceNow.png


Probably it could be reconfigured to Scoped application, am I right?


If yes, what should I do?