SnapLogic Git integration
Overview
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
- Configure your Git platform for use with SnapLogic Git Integration.
- 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 |