我为一个GitRepo资源做了如下配置:
name: ExtBuildInfo_ReleaseGitRepo
type: GitRepo
configuration:
gitProvider: Github
path: myrepo/ext-build-info
tags:
include: ^v.*$
buildOn:
commit: false
tagCreate: true
cancelPendingRuns:
newCommit: true
当我在Guthub中创建一个新版本时,我看到两个运行正在排队等待管道。为什么会这样?上面是否缺少任何配置?
在GitHub中,创建一个发布会发送两个webhook。一个钩子代表"释放";动作和一个代表"标签"。行动。这两个操作都是由GitRepo资源支持的。
通常,要对两个webhook作出反应,你需要同时启用两个设置:
name: ExtBuildInfo_ReleaseGitRepo
type: GitRepo
configuration:
gitProvider: Github
path: myrepo/ext-build-info
tags:
include: ^v.*$
buildOn:
commit: false
tagCreate: true
releaseCreate: true
cancelPendingRuns:
newCommit: true
同时启用这两个标志可能是创建发布时双重触发的常见来源。
在你的例子中,我看到你没有" releascreate: true"在你的邮箱里。在这种情况下,我建议你检查你的GitHub存储库设置,看看你是否可能有2个不同的webhook配置,可能会导致重复的触发器。如果你有两个,我建议删除其中一个,以避免重复触发。
这里是GitRepo资源的完整文档:https://www.jfrog.com/confluence/display/JFROG/GitRepo