Forum Discussion

2 Replies

  • Hi ramaonline ,

    Thank you for this valuable information. This is very usefull for me! 
    I just have one question regarding commiting from snaplogic to github. I found that there is not a public api method form snaplogic that gets the assets from a project and commits it to a branch or repository to github automatically.

    Have you had any experience with this. I am now trying to investigate/implement a scheduled pipeline that gets all the assets (account,pipeline .slp file and tasks) from each project from a certain projects space and commits these assets to a certain branch or repository in Github. 

    So that I don't need to manually go to the Manager tab and click on the project and then on the option 'commit to github'.

    What my conclusion for now is is that I get the assets from the public api from snaplogic and try to use also the api of Github to update its contect or upload it to github blobs.  https://docs.github.com/en/rest/git/blobs?apiVersion=2022-11-28#create-a-blob

    Thank you for your info already this helps me a lot.

    Regards

    Jens

  • Hi ramaonline 

    Thank you for this! Very informative and we've used this in designing our own CI/CD process as well. Quick question -- with the Pull to the Prod Org mentioned above, does that only refer to "updated" assets or does it pull all assets within the repo/branch?

    If it pulls all assets, how would you go about selecting which assets to deploy?

    Thanks again! 

  • aaron 

    The pull request would pull all assets. For merging assets selectively, you can create a separate branch with those assets and merge that branch to the target branch.