Added resource bitbucketserver_project_hook and cleaned up delete handling of permission resources

This commit is contained in:
Gavin Bunney
2019-10-15 11:44:33 -07:00
parent a8a1bcb48b
commit 51f1146d1d
12 changed files with 190 additions and 30 deletions

View File

@@ -0,0 +1,21 @@
---
id: bitbucketserver_project_hook
title: bitbucketserver_project_hook
---
Manage a project level hook. Extends what Bitbucket does every time a repository changes, for example when code is pushed or a pull request is merged.
## Example Usage
```hcl
resource "bitbucketserver_project_hook" "main" {
project = "MYPROJ"
hook = "com.atlassian.bitbucket.server.bitbucket-bundled-hooks:force-push-hook"
}
```
## Argument Reference
* `project` - Required. Project Key the hook to enable is for.
* `hook` - Required. The hook to enable on the project.
* `settings` - Optional. Map of values to apply as settings for the hook. Contents dependant on the individual hook settings.

View File

@@ -64,6 +64,9 @@
"bitbucketserver_plugin": {
"title": "bitbucketserver_plugin"
},
"bitbucketserver_project_hook": {
"title": "bitbucketserver_project_hook"
},
"bitbucketserver_project_permissions_group": {
"title": "bitbucketserver_project_permissions_group"
},

View File

@@ -26,6 +26,7 @@
"bitbucketserver_mail_server",
"bitbucketserver_plugin",
"bitbucketserver_project",
"bitbucketserver_project_hook",
"bitbucketserver_project_permissions_group",
"bitbucketserver_project_permissions_user",
"bitbucketserver_repository",