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 Service (FREE)
GitLab provides integration with Atlassian Bamboo for continuous integration. When configured, pushes to a project trigger a build in Bamboo automatically. Merge requests also display CI/CD status showing whether the build is pending, 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
- Navigate to a Bamboo build plan and choose Configure plan from the Actions dropdown.
- Select the Triggers tab.
- Click Add trigger.
- Enter a description such as GitLab trigger.
- Choose Repository triggers the build when changes are committed.
- Select the checkbox for one or more repositories.
- Enter the GitLab IP address in the Trigger IP addresses box. This is a list of IP addresses that are allowed to trigger Bamboo builds.
- Save the trigger.
- In the left pane, select a build stage. If you have multiple build stages you want to select the last stage that contains the Git checkout task.
- Select the Miscellaneous tab.
- Under Pattern Match Labeling put
${bamboo.repository.revision.number}
in the Labels box. - Save
Bamboo is now ready to accept triggers from GitLab. Next, set up the Bamboo service in GitLab.
Complete these steps in GitLab
- Navigate to the project you want to configure to trigger builds.
- Navigate to the Integrations page
- Click Atlassian Bamboo.
- Ensure that the Active toggle is enabled.
- Enter the base URL of your Bamboo server.
https://bamboo.example.com
- 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 uppercase identifier that is unique. When viewing a plan in Bamboo, the build key is also shown in the browser URL, for examplehttps://bamboo.example.com/browse/PROJ-PLAN
. - 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.
- Save or optionally click Test Settings. Test Settings actually triggers a build in Bamboo.
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.