File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
terraform/allstackskip-99_azdo-pipelines-setup Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1+ resource "azuredevops_build_definition" "job_terraform_build" {
2+ for_each = local. envs
3+ project_id = data. azuredevops_project . target . id
4+ name = " ${ title (local. repo_name )} - ${ title (each. key )} - Terraform Build"
5+ path = " ${ local . folders_path [each . key ]} \\ jobs"
6+ agent_pool_name = " Default"
7+
8+ ci_trigger {
9+ use_yaml = false
10+ }
11+
12+ repository {
13+ repo_type = " GitHub"
14+ repo_id = " ${ var . github_org_name } /${ var . github_project_name } "
15+ branch_name = local. default_branch
16+ yml_path = " .azuredevops/workflows/jobs/${ each . key } /terraform-build.yaml"
17+ service_connection_id = data. azuredevops_serviceendpoint_github . github . id
18+ }
19+ }
Original file line number Diff line number Diff line change 1- resource "azuredevops_build_definition" "terraform_build " {
1+ resource "azuredevops_build_definition" "stage_terraform_build " {
22 for_each = local. envs
33 project_id = data. azuredevops_project . target . id
44 name = " ${ title (local. repo_name )} - ${ title (each. key )} - Terraform Build"
You can’t perform that action at this time.
0 commit comments