cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Using Github as a code repository for SnapLogic artifacts

sudhendu
New Contributor II

Hello SL community!!

Coming from a typical SOA/ESB background and working on tools like TIBCO Businessworks, Webmethods, etc. I was wondering if we have a way of using any code repository tool (Github, etc.) to store our Projects and other artifacts.

I understand we have a intuitive Import/Export capabilities, this is manual and is a explicit activity to be performed by a developer.

I was wondering:

  1. if we have anything (or is there a possibility) to integrate SL and GitHub.
    This should ensure that the Project and its assets gets checked-in into the GitHub repo without us doing any manual import-export.

  2. And that this can be further use to move code from one environment to another (code migration).

I am new to the SL world, but already finding the community really helpful ๐Ÿ™‚

All response would be of help ๐Ÿ™‚

Thank you!
Sudhendu

29 REPLIES 29

Hello @bhavin.patel I tried to using above attached slps but I keep on getting below error.

image

"REST API service endpoint returned error result: status code = 404, reason phrase = Not Found, refer to the error_entity field in the error view document for more details

โ€œerror_entityโ€:
"{โ€œmessageโ€:โ€œNot Foundโ€,โ€œdocumentation_urlโ€:"Repositories - GitHub Docs
{

โ€œerrorโ€:
โ€œREST API service endpoint returned error result: status code = 404, reason phrase = Not Foundโ€

Steps I followed below :

  1. created account in Github let say โ€œsubhashchandraโ€ is my user
  2. created a repository under that let say โ€œSL_pocโ€ is my repository
  3. under SL_POC I made the same folder structure like in SnapLogic org I have
    let say folder structure like this
    SnapLogicOrgName/Projectspacename/Foldername
  4. created the REST basic auth account in SnapLogic with github credential
  5. in SnapLogic REST GET snap selected the account and in url like below

https://api.github.com/repos/subhashchandra/SL_POC/contents/SnapLogicOrgName/Projectspacename/Folder... name

  1. user-Agent as header and provided my github username.

Even from POST MAN app I also tried but no luckโ€ฆ

Appreciate your help here.

and tell me one more thing how differfent is if I want to do in gitlab instead github.

if you have any sample code for gitlab that will be very helpful for me.

@subhash.a.chandra Bhavin is no longer in the Community. Hopefully someone else can assist you.


Diane Miller
Community Manager

Hello @dmiller I got the solution by myself and able to integrate Gitlab and Github both from SnapLogic.

Thanks for your info.

See also

Additional links -

walkerline117
Contributor

So the solution provided here is just an asset โ€œcopyโ€.
Meaning that it simply copies the original asset from the source place and copy it to the destination place.
The github is just a place to store the location of the original assets.

The promotion pipeline will read the files in github to get the location of the original asset and move(copy) it to destination location.

The problem of this is that, the files store in Github is not being used as source code. If I remove the asset from the source location, then the promotion pipeline will not be able to migrate the asset from source to destination as its doing a copy and the asset is missing.

Is there a way to take the files store in github as true source code and import this source code to a new org? In this case, even someone removes all the assets from source org, by importing the files in Git, we should still be able to migrate all the assets into destination org.

Thanks