Skip to content

Commit

Permalink
Merge pull request #105 from athiththan11/main-queue-status
Browse files Browse the repository at this point in the history
Add `queue_status` Configuration to Azure DevOps Build Definition Modules
  • Loading branch information
athiththan11 authored Sep 23, 2024
2 parents 498f99f + 50ffbd3 commit a6a8253
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ resource "azuredevops_build_definition" "devops_build_definition" {
name = var.build_definition_name
path = var.pipeline_path
agent_pool_name = var.agent_pool_name
queue_status = var.status

ci_trigger {
use_yaml = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,9 @@ variable "repo_type" {
description = "The type of the repository."
type = string
}

variable "status" {
default = "enabled"
description = "The queue status of the build definition. Valid values: enabled or paused or disabled"
type = string
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ resource "azuredevops_build_definition" "devops_build_definition" {
name = var.build_definition_name
agent_pool_name = var.agent_pool_name
path = var.pipeline_path
queue_status = var.status

ci_trigger {
use_yaml = true
Expand Down
6 changes: 6 additions & 0 deletions modules/azuredevops/GitHub-Build-Definition/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,9 @@ variable "repo_type" {
description = "The type of the repository."
type = string
}

variable "status" {
default = "enabled"
description = "The queue status of the build definition. Valid values: enabled or paused or disabled"
type = string
}

0 comments on commit a6a8253

Please sign in to comment.