为什么CI分支触发管道无法正常工作?
trigger:
batch: true
branches:
include:
- main
- dev
- sprint
- 'sprint-name'
# wild cards can be used in branch triggers, but only at a "directory" level, and we don't generally create those
#example - sprint/* would get sprint/name1 and sprint/name2, but sprint* doesn't match anything (not sprint-name1, not sprint/name2, nothing)
除工作以外的所有分支机构,我也尝试了
'sprint-name'
。 我已经将更改为YML文件转为主和分支。 我唯一能想到的是在没有破折号的情况下重命名分支机构,但是除非我必须这样做,否则我真的不想这样做。
在我的身边,我尝试使用像下面的CI触发器的配置。
sprint-name
trigger:
batch: true
branches:
include:
- main
- sprint*
,
main
和
sprint/name1
。每个分支都有一个YAML文件,并具有上述CI触发器的配置。当我将更改推向3个分支中的任何一个时,CI触发器可以按预期工作,以触发该分支的新运行,该分支推动了变化。 对于您的情况,如果上述CI触发器的配置对分支“
sprint-name2
”和“sprint-xxxx
”不起作用,则可以尝试更改如下的配置。
sprint/xxxx