SnapLogic Git integration

Overview

The SnapLogic Git integration currently supports the following Git platform providers:

With Git integration, you can track, update, and manage versions of SnapLogic project files, pipelines, tasks, and accounts, using either the SnapLogic graphical interface or the SnapLogic Public APIs. These operations include checkout, add, remove, pull, and commit, as well as creating branches and tags.

Git integration supports both Gitflow and trunk-based development; however, SnapLogic recommends trunk-based development.

If you use different Orgs for development, testing, and production, you can use the same repository to track project assets shared by all Orgs. For example, in a development Org, you might associate Project1 with a dev branch. When the assets are ready for testing, commit and merge them to the test branch. When testing and bug fixing is complete, merge the changes into the main branch. Then, create a release for the production Org.

Limitations

  • Snap Pack and Snaplex assets cannot be tracked.
  • You can track only up to 1,000 assets per project.

Prerequisites

  • A Git repository for each project.
  • User accounts must have read and write access to the appropriate Git repositories and SnapLogic projects.

Configuration

  1. Configure your Git platform for use with SnapLogic Git Integration.
  2. Individual users must authorize SnapLogic to access their Git hosting provider account.

Git Operations

Operation Using SnapLogic Manager Using SnapLogic Public APIs
Create a project Git integration: Create a project from a repository Create project from Git files
Create a new branch Git integration: Create a branch Create a Git branch
Create a new tag Git integration: Add a tag Add a Git tag
Check out a branch or tag Git integration: Check out a branch or tag Check out project files from Git
Switch branches Git integration: Switch branches
Add a single asset Git integration: Add a single asset
Commit all updated assets Git integration: Commit all updates
Remove assets Git integration: Remove assets
Pull updates from a repository Git integration: Pull from the repository Pull the latest project files from Git
Tip: You can also use the Git command line interface or the Git hosting provider's UI to add, remove, and commit file assets. However, before resuming work on a project, pull from the repository to get the latest updates into SnapLogic.