Skip to content

Instantly share code, notes, and snippets.

@goyalmohit
Created September 14, 2020 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goyalmohit/5766d4d814f5cda7036111dbadc91db3 to your computer and use it in GitHub Desktop.
Save goyalmohit/5766d4d814f5cda7036111dbadc91db3 to your computer and use it in GitHub Desktop.
# Partially incomplete block below - will not work in isolation
resource "azuredevops_build_definition" "tf-example-build" {
project_id = azuredevops_project.tf-example.id
name = "Build Definition for forked-repo"
agent_pool_name = "Azure Pipelines"
ci_trigger {
use_yaml = true
}
repository {
repo_type = "TfsGit"
repo_id = data.azuredevops_git_repositories.forked-repo.repositories[0].id
branch_name = data.azuredevops_git_repositories.forked-repo.repositories[0].default_branch
yml_path = "azure-pipelines.yml"
}
variable_groups = [azuredevops_variable_group.variablegroup.id]
variable {
name = "solution"
value = "**/*.sln"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment