mirror of
https://github.com/jlengrand/moderne-docs.git
synced 2026-03-10 08:31:21 +00:00
docs: add bitbucket agent docs
This commit is contained in:
BIN
.gitbook/assets/agent-bitbucket-app-link-part-1.png
Normal file
BIN
.gitbook/assets/agent-bitbucket-app-link-part-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 182 KiB |
BIN
.gitbook/assets/agent-bitbucket-app-link-part-2.png
Normal file
BIN
.gitbook/assets/agent-bitbucket-app-link-part-2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
BIN
.gitbook/assets/agent-bitbucket-applink.png
Normal file
BIN
.gitbook/assets/agent-bitbucket-applink.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
BIN
.gitbook/assets/agent-bitbucket-create-link.png
Normal file
BIN
.gitbook/assets/agent-bitbucket-create-link.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 37 KiB |
29
SUMMARY.md
29
SUMMARY.md
@@ -1,31 +1,32 @@
|
||||
# Table of contents
|
||||
|
||||
* [Welcome to Moderne](README.md)
|
||||
- [Welcome to Moderne](README.md)
|
||||
|
||||
## Getting Started
|
||||
|
||||
* [Quick Start: Running your first recipe](getting-started/running-your-first-recipe.md)
|
||||
- [Quick Start: Running your first recipe](getting-started/running-your-first-recipe.md)
|
||||
|
||||
## How-to Guides <a href="#how-to" id="how-to"></a>
|
||||
|
||||
* [Creating your own recipes with Builder](how-to/creating-your-own-recipes-with-builder.md)
|
||||
* [Importing projects from GitHub](how-to/importing-projects-from-github.md)
|
||||
* [Integrating private code with Moderne SaaS](how-to/integrating-private-code.md)
|
||||
* [Importing external recipes](how-to/importing-external-recipes.md)
|
||||
* [Terraform Cloud integration](how-to/terraform-cloud-integration.md)
|
||||
* [On-Premise Agent](how-to/on-premise-agent.md)
|
||||
* [🚀 Accessing the Moderne API](how-to/accessing-the-moderne-api.md)
|
||||
- [Creating your own recipes with Builder](how-to/creating-your-own-recipes-with-builder.md)
|
||||
- [Importing projects from GitHub](how-to/importing-projects-from-github.md)
|
||||
- [Integrating private code with Moderne SaaS](how-to/integrating-private-code.md)
|
||||
- [Importing external recipes](how-to/importing-external-recipes.md)
|
||||
- [Terraform Cloud integration](how-to/terraform-cloud-integration.md)
|
||||
- [On-Premise Agent](how-to/on-premise-agent.md)
|
||||
- [Configure BitBucket with Agent](how-to/connect-bitbucket-to-agent.md)
|
||||
- [🚀 Accessing the Moderne API](how-to/accessing-the-moderne-api.md)
|
||||
|
||||
## Releases
|
||||
|
||||
* [Versions of plugins and agent](releases/releases.md)
|
||||
- [Versions of plugins and agent](releases/releases.md)
|
||||
|
||||
## References
|
||||
|
||||
* [GitHub permissions](references/github-permissions.md)
|
||||
* [Token management](references/create-api-access-tokens.md)
|
||||
* [User Roles](references/user-roles.md)
|
||||
- [GitHub permissions](references/github-permissions.md)
|
||||
- [Token management](references/create-api-access-tokens.md)
|
||||
- [User Roles](references/user-roles.md)
|
||||
|
||||
## Legal
|
||||
|
||||
* [Terms of Service](legal/terms-of-service.md)
|
||||
- [Terms of Service](legal/terms-of-service.md)
|
||||
|
||||
59
how-to/configure-bitbucket-to-agent.md
Normal file
59
how-to/configure-bitbucket-to-agent.md
Normal file
@@ -0,0 +1,59 @@
|
||||
# Connect BitBucket to Moderne Agent
|
||||
|
||||
## Step 1 - Generate a public and private key for BitBucket
|
||||
|
||||
```shell
|
||||
openssl genrsa -out bitbucket_privatekey.pem 1024
|
||||
|
||||
openssl req -newkey rsa:1024 -x509 -key bitbucket_privatekey.pem -out bitbucket_publickey.cer -days 365
|
||||
|
||||
openssl pkcs8 -topk8 -nocrypt -in bitbucket_privatekey.pem -out bitbucket_privatekey.pcks8
|
||||
|
||||
openssl x509 -pubkey -noout -in bitbucket_publickey.cer > bitbucket_publickey.pem
|
||||
```
|
||||
|
||||
## Step 2 - Create an Application Link in BitBucket
|
||||
|
||||
1. Go to the Administration page of BitBucket
|
||||
2. Select _Application Links_ from the _System_ section
|
||||

|
||||
3. Click on "Create link"
|
||||
4. Ensure that the _Application Type_ is set to _Atlassian product_
|
||||
5. Enter the the URL for your Moderne instances as the _Application URL_
|
||||

|
||||
6. Click _Continue_
|
||||
7. Define a new Incoming Application with the following settings:
|
||||
|
||||
| Field | Value |
|
||||
| --------------------- | -------------------------------- |
|
||||
| Application Name | Moderne |
|
||||
| Application Type | Generic Application |
|
||||
| Service Provider Name | `moderne` |
|
||||
| Consumer key | `OauthKey` |
|
||||
| Shared secret | Enter in your own secret |
|
||||
| Request token URL | `https://your-domain.moderne.io` |
|
||||
| Access token URL | `https://your-domain.moderne.io` |
|
||||
| Authorize URL | `https://your-domain.moderne.io` |
|
||||
| Create incoming link | ✅ |
|
||||
|
||||
8. Click _Continue_
|
||||
9. Complete the Incoming Link configuration
|
||||
| Field | Value |
|
||||
| --------------------- | -------------------------------- |
|
||||
| Consumer Key | `OauthKey` |
|
||||
| Consumer Name | Moderne |
|
||||
| Public Key | Paste the public key (`bitbucket_publickey.pem`) from step 1 |
|
||||
10. Click _Continue_ to complete the Application Link creation
|
||||
|
||||
## Step 3 - Configure Moderne Agent with BitBucket private key
|
||||
|
||||
To complete the set-up of BitBucket with the agent we will need to define the private key, `bitbucket_privatekey.pcks8`, we generated in Step 1 as a run-time parameter for the agent.
|
||||
|
||||
1. Open up `bitbucket_privatekey.pcks8` in a text editor.
|
||||
2. Remove the first and last line of the file.
|
||||
- `-----BEGIN PRIVATE KEY-----` and `-----END PRIVATE KEY-----`
|
||||
3. Remove all newline and return characters and copy the contents of the file as a single-line string.
|
||||
- Using bash:
|
||||
```shell
|
||||
cat bitbucket_privatekey.pcks8 | sed '1d;$d' | tr -d '\n'
|
||||
```
|
||||
Reference in New Issue
Block a user