Created
September 14, 2020 10:13
-
-
Save goyalmohit/5766d4d814f5cda7036111dbadc91db3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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