Multiple Omni models can share the same git repository. If you’re connecting a model to a repository that’s already connected to another model, you only need to complete the Omni-side setup—the repository’s deploy key and webhooks are already configured.
Requirements
To follow the steps in this guide, you’ll need:- Omni Connection Admin permissions for the model you want to connect to git
- An existing repository
- Permissions in that allow you to:
Setup
1
Retrieve the repository's SSH URL
- In your browser, navigate to the Bitbucket repository you want to connect to Omni.
- Click the Clone button near the top right corner of the page.
- In the modal that displays, click the HTTPS dropdown, then select SSH.
2
Connect the repository to Omni
- In Omni, click Develop.
- Click the model you want to connect to git.
- In the model IDE, click Model > Git settings.
- You’ll be prompted to enter connection details for the repository:
- Authentication Method - Select SSH (Deploy Key) from the dropdown.
- SSH URL - Copy and paste the repository’s SSH URL from Step 1.
- Base Branch - Enter the name of the default branch for the repository. Omni will default to
mainunless a different name is specified. - Git follower - Select this option if the repository should be treated as a follower.
- Click Configure Git.
3
Add a repository access key
- In the Bitbucket repository, click Repository settings.
- Click Access keys, located in the left navigation.
- Click Add key.
- Fill in the fields as follows:
- Key - Copy the Public key from the Omni Git settings page and paste it into this field.
- Permission - Select Write to allow Omni to push changes made in Omni to the repository
- Click Add key.
4
Add repository webhooks
- If the repository settings page isn’t still open, open it by clicking Repository settings in the left navigation.
- Click Webhooks, located in the Workflow section of the left navigation.
- Click Add webhook.
- Fill in the fields as follows:
- Title - Enter a descriptive title, such as Omni Pull Request Webhook
- URL - From the Omni Git settings page, copy the Payload URL and paste it into this field.
- Secret - From the Omni Git settings page, copy the Webhook secret and paste it into this field.
- In the Triggers section, select Choose from a full list of triggers.
- Select only the Pull Request events:
- Pull Request Created
- Pull Request Updated
- Pull Request Merged
- When finished, click Save.
5
Test the connection
To verify the setup, navigate back to the Git settings page in Omni. Click the Test git connection button near the top of the page to test the connection.

