3.2 KiB
stage | group | info |
---|---|---|
Ecosystem | Integrations | To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments |
Atlassian Bamboo integration (FREE)
You can automatically trigger builds in Atlassian Bamboo when you push changes to your project in GitLab.
When this integration is configured, merge requests also display the following information:
- A CI/CD status that shows if the build is pending, failed, or has completed successfully.
- A link to the Bamboo build page for more information.
Bamboo doesn't provide the same features as a traditional build system when accepting webhooks and commit data. You must configure a Bamboo build plan before you configure the integration in GitLab.
Configure Bamboo
- In Bamboo, go to a build plan and choose Actions > Configure plan.
- Select the Triggers tab.
- Select Add trigger.
- Enter a description like
GitLab trigger
. - Select Repository triggers the build when changes are committed.
- Select the checkbox for one or more repositories.
- Enter the GitLab IP address in Trigger IP addresses. These IP addresses are allowed to trigger Bamboo builds.
- Save the trigger.
- In the left pane, select a build stage. If you have multiple build stages, select the last stage that contains the Git checkout task.
- Select the Miscellaneous tab.
- Under Pattern Match Labeling enter
${bamboo.repository.revision.number}
in Labels. - Select Save.
Bamboo is ready to accept triggers from GitLab. Next, set up the Bamboo integration in GitLab.
Configure GitLab
- On the top bar, select Menu > Projects and find your project.
- On the left sidebar, select Settings > Integrations.
- Select Atlassian Bamboo.
- Ensure the Active checkbox is selected.
- Enter the base URL of your Bamboo server. For example,
https://bamboo.example.com
. - Enter the build key from your Bamboo build plan.
- If necessary, enter a username and password for a Bamboo user that has access to trigger the build plan. Leave these fields blank if you do not require authentication.
- Optional. To test the configuration and trigger a build in Bamboo, select Test Settings.
- Select Save changes.
Identify the Bamboo build plan build key
A build key is a unique identifier typically made up from the project key and
plan key.
Build keys are short, all uppercase, and separated with a dash (-
),
for example PROJ-PLAN
.
The build key is included in the browser URL when you view a plan in
Bamboo. For example, https://bamboo.example.com/browse/PROJ-PLAN
.
Troubleshooting
Builds not triggered
If builds are not triggered, ensure you entered the right GitLab IP address in Bamboo under Trigger IP addresses. Also check service hook logs for request failures.
Advanced Atlassian Bamboo features not available in GitLab UI
Advanced Atlassian Bamboo features are not compatible with GitLab. These features include, but are not limited to, the ability to watch the build logs from the GitLab UI.