我有一个在TeamCity中设置的CI构建,它将在BitBucket(git)中发出拉取请求时触发.它目前针对pull请求的源分支构建,但如果它可以构建合并的pull请求则更有意义.
我的研究给我留下了以下可能的解决方案:
有没有人在TeamCity之前做过这个或者有关于如何实现它的建议?
更新:(根据John Hoerr回答)
替代解决方案 - 忘记TeamCity进行合并,使用BitBucket Web钩子创建像github这样的合并分支,并遵循John Hoerr的回答.
teamcity merge continuous-integration bitbucket pull-request
不确定这是否可行,但我有一个DynamoDb表模块,我想让global_secondary_index属性可选,但我无法弄清楚如何做到这一点.
我有以下模块
resource "aws_dynamodb_table" "basic_dynamodb_table" {
name = "${var.table_name}"
read_capacity = "${var.read_capacity}"
write_capacity = "${var.write_capacity}"
hash_key = "${var.primary_key}"
attribute {
name = "${var.primary_key}"
type = "${var.primary_key_type}"
}
global_secondary_index = ["${var.global_secondary_index}"]
}
variable "table_name" {}
variable "read_capacity" {
default = "1"
}
variable "write_capacity" {
default = "1"
}
variable "primary_key" {}
variable "primary_key_type" {}
variable "global_secondary_index" {
default = {}
type = "map"
description = "This should be optional"
}
Run Code Online (Sandbox Code Playgroud)
它会被使用
module "test-table" {
source = "./modules/DynamoDb"
table_name …Run Code Online (Sandbox Code Playgroud)