2016-08-08 19:25:52 +02:00
|
|
|
---
|
|
|
|
layout: "bitbucket"
|
|
|
|
page_title: "Provider: Bitbucket"
|
|
|
|
sidebar_current: "docs-bitbucket-index"
|
|
|
|
description: |-
|
2016-09-21 20:47:31 +02:00
|
|
|
The Bitbucket provider to interact with repositories, projects, etc..
|
2016-08-08 19:25:52 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
# Bitbucket Provider
|
|
|
|
|
|
|
|
The Bitbucket provider allows you to manage resources including repositories,
|
|
|
|
webhooks, and default reviewers.
|
|
|
|
|
|
|
|
Use the navigation to the left to read about the available resources.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
# Configure the Bitbucket Provider
|
|
|
|
provider "bitbucket" {
|
|
|
|
username = "GobBluthe"
|
|
|
|
password = "idoillusions" # you can also use app passwords
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "bitbucket_repsitory" "illusions" {
|
|
|
|
owner = "theleagueofmagicians"
|
|
|
|
name = "illussions"
|
|
|
|
scm = "hg"
|
|
|
|
is_private = true
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported in the `provider` block:
|
|
|
|
|
|
|
|
* `username` - (Required) Your username used to connect to bitbucket. You can
|
|
|
|
also set this via the environment variable. `BITBUCKET_USERNAME`
|
|
|
|
|
2016-09-21 20:47:31 +02:00
|
|
|
* `password` - (Required) Your password used to connect to bitbucket. You can
|
2016-08-08 19:25:52 +02:00
|
|
|
also set this via the environment variable. `BITBUCKET_PASSWORD`
|