GitSwarm-EE 2017.1-1 Documentation


Atlassian Bamboo CI Service

GitSwarm provides integration with Atlassian Bamboo for continuous integration. When configured, pushes to a project will trigger a build in Bamboo automatically. Merge requests will also display CI 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 GitSwarm can integrate.

Setup

Complete these steps in Bamboo:

  1. Navigate to a Bamboo build plan and choose 'Configure plan' from the 'Actions' dropdown.
  2. Select the 'Triggers' tab.
  3. Click 'Add trigger'.
  4. Enter a description such as 'GitSwarm trigger'
  5. Choose 'Repository triggers the build when changes are committed'
  6. Check one or more repositories checkboxes
  7. Enter the GitSwarm IP address in the 'Trigger IP addresses' box. This is a whitelist of IP addresses that are allowed to trigger Bamboo builds.
  8. Save the trigger.
  9. 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.
  10. Select the 'Miscellaneous' tab.
  11. Under 'Pattern Match Labelling' put '${bamboo.repository.revision.number}' in the 'Labels' box.
  12. Save

Bamboo is now ready to accept triggers from GitSwarm. Next, set up the Bamboo service in GitSwarm

Complete these steps in GitSwarm:

  1. Navigate to the project you want to configure to trigger builds.
  2. Select 'Settings' in the top navigation.
  3. Select 'Services' in the left navigation.
  4. Click 'Atlassian Bamboo CI'
  5. Select the 'Active' checkbox.
  6. Enter the base URL of your Bamboo server. 'https://bamboo.example.com'
  7. Enter the build key from your Bamboo build plan. Build keys are a short, all capital letter, identifier that is unique. It will be something like PR-BLD
  8. 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.
  9. Save or optionally click 'Test Settings'. Please note that 'Test Settings' will actually trigger a build in Bamboo.

Troubleshooting

If builds are not triggered, these are a couple of things to keep in mind.

  1. Ensure you entered the right GitSwarm IP address in Bamboo under 'Trigger IP addresses'.
  2. Remember that GitSwarm only triggers builds on push events. A commit via the web interface will not trigger CI currently.