2020-10-24 23:57:45 +05:30
---
stage: Create
group: Ecosystem
2021-02-22 17:27:13 +05:30
info: 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
2020-10-24 23:57:45 +05:30
---
2017-08-17 22:00:37 +05:30
# Atlassian Bamboo CI Service
GitLab provides integration with Atlassian Bamboo for continuous integration.
2021-02-22 17:27:13 +05:30
When configured, pushes to a project trigger a build in Bamboo automatically.
Merge requests also display CI status showing whether the build is pending,
2017-08-17 22:00:37 +05:30
failed, or completed successfully. It also provides a link to the Bamboo build
page for more information.
Bamboo doesn't quite provide the same features as a traditional build system when
it comes to accepting webhooks and commit data. There are a few things that
need to be configured in a Bamboo build plan before GitLab can integrate.
## Setup
### Complete these steps in Bamboo
1. Navigate to a Bamboo build plan and choose 'Configure plan' from the 'Actions'
dropdown.
1. Select the 'Triggers' tab.
1. Click 'Add trigger'.
1. Enter a description such as 'GitLab trigger'
1. Choose 'Repository triggers the build when changes are committed'
1. Check one or more repositories checkboxes
1. Enter the GitLab IP address in the 'Trigger IP addresses' box. This is a
2020-06-23 00:09:42 +05:30
list of IP addresses that are allowed to trigger Bamboo builds.
2017-08-17 22:00:37 +05:30
1. Save the trigger.
1. In the left pane, select a build stage. If you have multiple build stages
2019-12-21 20:55:43 +05:30
you want to select the last stage that contains the Git checkout task.
2017-08-17 22:00:37 +05:30
1. Select the 'Miscellaneous' tab.
2020-05-24 23:13:21 +05:30
1. Under 'Pattern Match Labeling' put `${bamboo.repository.revision.number}`
2017-08-17 22:00:37 +05:30
in the 'Labels' box.
1. Save
Bamboo is now ready to accept triggers from GitLab. Next, set up the Bamboo
service in GitLab.
### Complete these steps in GitLab
1. Navigate to the project you want to configure to trigger builds.
2020-04-22 19:07:51 +05:30
1. Navigate to the [Integrations page ](overview.md#accessing-integrations )
2017-08-17 22:00:37 +05:30
1. Click 'Atlassian Bamboo CI'
2020-04-22 19:07:51 +05:30
1. Ensure that the **Active** toggle is enabled.
2019-03-02 22:35:43 +05:30
1. Enter the base URL of your Bamboo server. `https://bamboo.example.com`
2018-11-08 19:23:39 +05:30
1. Enter the build key from your Bamboo build plan. Build keys are typically made
up from the Project Key and Plan Key that are set on project/plan creation and
separated with a dash (`-`), for example **PROJ-PLAN** . This is a short, all
2021-03-11 19:13:27 +05:30
uppercase identifier that is unique. When viewing a plan in Bamboo, the
2018-11-08 19:23:39 +05:30
build key is also shown in the browser URL, for example `https://bamboo.example.com/browse/PROJ-PLAN` .
2017-08-17 22:00:37 +05:30
1. If necessary, enter 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.
1. Save or optionally click 'Test Settings'. Please note that 'Test Settings'
2021-02-22 17:27:13 +05:30
actually triggers a build in Bamboo.
2017-08-17 22:00:37 +05:30
## Troubleshooting
2021-03-11 19:13:27 +05:30
### Builds not triggered
2017-08-17 22:00:37 +05:30
If builds are not triggered, ensure you entered the right GitLab IP address in
2020-04-22 19:07:51 +05:30
Bamboo under 'Trigger IP addresses'. Also check [service hook logs ](overview.md#troubleshooting-integrations ) for request failures.
2017-08-17 22:00:37 +05:30
2021-03-11 19:13:27 +05:30
### 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.