forked from microsoft/terraform-provider-azuredevops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
78 lines (70 loc) · 3.01 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
locals {
azure_org = "NiteshLall"
}
provider "azuredevops" {
version = "= 0.4.0"
org_service_url = "https://dev.azure.com/${local.azure_org}/"
}
provider "bblnazuredevops" {
version = "= 0.0.4"
org_service_url = "https://dev.azure.com/${local.azure_org}/"
}
resource "azuredevops_project" "project" {
project_name = "nitesh-custom"
}
resource "azuredevops_serviceendpoint_github" "gh" {
project_id = azuredevops_project.project.id
service_endpoint_name = "github"
}
resource "bblnazuredevops_serviceendpoint_githubapp" "app" {
project_id = azuredevops_project.project.id
connection_id = azuredevops_serviceendpoint_github.gh.id
repo = "babylonhealth/pipeline-historian"
}
resource "bblnazuredevops_build_permissions" "admin_permission3" {
project_id = "4f7f5d92-0e11-4311-ac85-9972864acbc2"
principal = "vssgp.Uy0xLTktMTU1MTM3NDI0NS0yNDU1NjAwOTc1LTI4NjEzNDU5NS0yODk0NDM2NzIyLTIyNTMwNDg3NzAtMS0zNzc2MDEyNDM3LTI1MjAyNTQ3OTAtMjYxOTIwMDAzOS0yNTg5OTY1NzE4"
project_level = true
replace = true
permissions = {
ViewBuilds = "allow"
EditBuildQuality = "allow"
RetainIndefinitely = "allow"
DeleteBuilds = "allow"
ManageBuildQualities = "allow"
DestroyBuilds = "allow"
UpdateBuildInformation = "allow"
QueueBuilds = "allow"
ManageBuildQueue = "allow"
StopBuilds = "allow"
ViewBuildDefinition = "allow"
EditBuildDefinition = "allow"
DeleteBuildDefinition = "allow"
OverrideBuildCheckInValidation = "allow"
AdministerBuildPermissions = "deny"
}
}
resource "bblnazuredevops_build_permissions" "admin_permission4" {
project_id = "4f7f5d92-0e11-4311-ac85-9972864acbc2"
principal = "vssgp.Uy0xLTktMTU1MTM3NDI0NS0yNDU1NjAwOTc1LTI4NjEzNDU5NS0yODk0NDM2NzIyLTIyNTMwNDg3NzAtMS0zNzc2MDEyNDM3LTI1MjAyNTQ3OTAtMjYxOTIwMDAzOS0yNTg5OTY1NzE4"
project_level = false
build_id = 39
replace = true
permissions = {
ViewBuilds = "allow"
EditBuildQuality = "allow"
RetainIndefinitely = "allow"
DeleteBuilds = "allow"
ManageBuildQualities = "allow"
DestroyBuilds = "allow"
UpdateBuildInformation = "allow"
QueueBuilds = "allow"
ManageBuildQueue = "allow"
StopBuilds = "allow"
ViewBuildDefinition = "allow"
EditBuildDefinition = "allow"
DeleteBuildDefinition = "allow"
OverrideBuildCheckInValidation = "allow"
AdministerBuildPermissions = "deny"
}
}