Connect the Spryker CI to a GitLab managed project
Edit on GitHubThere are two options for connecting Spryker CI to your repository: using Spryker CI’s native integration or using an access token.
Connect using Spryker CI native integration
- In Spryker CI, go to Projects.
- On the Projects page, select the Spryker Upgrade Service project.
- Go to Code.
-
In the Connect Git repository pane, for GIT HOSTING PROVIDER, select GitLab.
-
For ADD GITLAB INTEGRATION select +. This opens GitLab in a new window.
- To authorize Buddy CI to access your account, click Authorize. Your account should have administrator rights in the repository you want to connect.
-
For GROUP, select the GitLab group that has access to the repository you want to connect.
-
For REPOSITORY, select the repository you want to connect. This displays a success message. The Upgrader is now connected to your repository.
Connect Spryker Code Upgrader using GitLab access token
To connect the Upgrader manually using a GitLab access token, follow the steps.
Prerequisites
GitLab access token should have the following repository permissions:
-
api for Spryker CI: grants complete read and write access to the scoped project API, including the Package Registry
-
write_repository for Spryker Upgrader Service: grants read and write access to the repository to enable the Upgrader to analyze the project and create PRs.
Configure the connection in Spryker CI
- In Spryker CI, go to Projects.
- On the Projects page, select the Spryker Upgrade Service project.
- Go to Integrations.
- On the Integrations page, click New integration.
- On the New integration page, click the Git tab.
- Select GitLab.
- On the Add new GitLab integration page, enter a NAME.
- Select SHARING and AVAILABILITY per your requirements.
- For AUTHORIZATION METHOD, select Access Token.
- For ACCESS TOKEN, enter the GitLab access token.
-
Click New integration. This connects the Upgrader to your GitLab organization.
-
To select the needed repository, go to Code.
-
On the Switch repository or Git hosting provider page, click the GitLab tab.
-
Select a REPOSITORY to connect the Upgrader to. This displays the message about a successful update. Now the Upgrader is connected to the repository.
Support for Spryker CI
- For help with Spryker CI, contact support.
- To learn more about Buddy, see their docs.
Next steps
Thank you!
For submitting the form