Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Clone an existing Git Repo in ServiceNow IDE

carey2
Tera Contributor

Hey all,

    Has anyone successfully tested converting an existing ServiceNow App into a Fluent App and importing it from a git Repo into ServiceNow IDE?

 

So far I have managed to convert an existing App to Fluent using the Convert functionality and then push it to a GitHub Repo from the instance the App was first created on. It has some bugs and so won't build yet but structurally its a Fluent App. It has the correct package.json, now.config.json and src/fluent folder structure.  

 

However, I now want to work on that same app from a different instance (to test the Build Agent). I have connected the other instance to the same Repo (credentials and everything are good) and have confirmed that I can access that Repo successfully. When I try and clone from that repo I get the error : No fluent app found at https://github.com/<username/reponame>

 

Does anyone know what checking is done to look for a Fluent app and why my App that was converted with the IDE isn't being picked up? Anyone any ideas on things I could try to diagnose the issue?  

1 ACCEPTED SOLUTION

rafi_kothapalli
Tera Contributor

I was having the same issue.After hours of debugging and reverting my commits in git repo.
Finally the now.config.json file seems to be the culprit:
It should be in the below format:
{
"scope": "x_test_abc_test,
"scopeId": "1ae2d166339323210ad466832cd5c7b17",
"name": "Test App",
"tsconfigPath": "./src/server/tsconfig.json"
}

Remove any other extra lines which got added 

In my case,I had to remove below part:
"accessControls": {
"runtimeAccessTracking": "none"
},
"licensing": {
"enforceLicense": "none"
}

And then finally it worked!
Hope it helps!

View solution in original post

7 REPLIES 7

Rafael Batistot
Kilo Patron

Hi @carey2 

This document might help you:

https://www.servicenow.com/docs/bundle/zurich-application-development/page/build/servicenow-ide/task...

If you found this response helpful, please mark it as Helpful. If it fully answered your question, consider marking it as Correct. Doing so helps other users find accurate and useful information more easily.

Thanks. That doc talks through the procedure for pushing the App to the Git Repo. I have successfully completed that part. I now need to clone from the Repo to another instance. There are instructions for that but they don't work......i'm hoping someone else has tried it and has some magic to get it to complete. 

M Iftikhar
Tera Sage

Hi @carey2 ,

 

Please check this link: Clone a Git repository with the ServiceNow IDE

 

Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.

Yes, thats the doc I have been following but it fails after step 5 and so the clone never completes. I get the error message in my original post.