Github Integration
BeetleboxCI supports integration with Github through a Github App. The user is required to register a new Github App, through which BeetleboxCI will interface with Github.
To create a Github App:
Browse to Github and go to settings by clicking the icon on the top-right corner of the page and clicking Settings.
Switch settings context (Ctrl+F on the settings page) if needed. This determines whether you create the app under your own personal Github account or your organisation's account.
Go to Developer Settings>Github Apps on the left hand column.
Click New Github App
Provide a name for your app and optionally write a description
The homepage URL will be the URL of your BeetleboxCI installation, i.e. http://[server_address]:32767
The Callback URL will be http://[server_address]:32767/select_organisation.
Check "Request user authorization (OAuth) during installation"
Make sure "Active" is unchecked under Webhook.
Under Permissions, select the following:
Repository Permissions: Read and write for Administration
Repository Permissions: Read and write for Commit Statuses
Repository Permissions: Read and write for Deployments
Repository Permissions: Read-only for Metadata
Repository Permissions: Read and write for Pull Requests
Repository Permissions: Read and write for Webhooks
Organization Permissions: Read and write for Administration
Account Permissions: Read-only for Email addresses
Account Permissions: Read and write for Git SSH Keys
Select "Any account" under "Where can this GitHub App be installed?" unless you specifically only intend to install the app on the current Github account (without sharing it with anyone including your teammates
Generate a new client secret and a new private key. You will need them to link BeetleboxCI to this app.
To set up integration with a Github user or organisation account:
- Access the settings using the symbol in the top right hand corner of the BeetleboxCI web app in your browser.
- Go to "Linked Organisations".
- Enter the details from the app into the form. For the Beetlebox URL, it will be http://[server_address]:32767
- Click "Update Git Data".
- Click "Configure Organisations".
- Select a Github Organisation or Github account to add.
- Click "Install & Authorize"
- When prompted to choose which organisations to use, check the boxes you require.
- Repeat for any other organisation or user accounts you need to connect.
Now when you create a new pieline from the Pipelines page, you should be able to create a pipeline directly from the list of repositories from.