Skip to content

Add "Path filter" support for repository build policy #62

Closed
@patr00n

Description

@patr00n

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Add missing filenamePatterns arguments block
https://docs.microsoft.com/en-us/rest/api/azure/devops/policy/configurations/create?view=azure-devops-rest-5.1

New or Affected Resource(s)

  • azuredevops_branch_policy_build_validation

Potential Terraform Configuration

resource "azuredevops_branch_policy_build_validation" "p" {
  project_id = azuredevops_project.p.id

  settings {
    display_name        = "Don't break the build!"
    build_definition_id = azuredevops_build_definition.b.id

    scope {
      repository_id  = azuredevops_git_repository.r.id
      repository_ref = azuredevops_git_repository.r.default_branch
      match_type     = "Exact"
    }

    filename_patterns [
      "/WebApp/*",
      "!/WebApp/Tests/*",
      "*.cs",
    ]
  }
}

References

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions