我想添加这个触发器:“GitHub hook trigger for GITScm polling”到我的管道。有人知道我该怎么做吗?我试图在官方文档中找到但没有成功。
最佳答案
管道语法尚不支持 GitHub 钩子(Hook)触发器。
官方documentation说:
For Pipelines which are integrated with a source such as GitHub or BitBucket, triggers may not be necessary as webhooks-based integration will likely already be present. The triggers currently available are
cron
,pollSCM
andupstream
.
因此,目前可以通过 Jenkins UI 的作业配置页面启用它。
关于linux - 将触发器添加到 Jenkins 管道,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57793235/