Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jenkins 如何在推送某个分支时设置github webhook触发器_Jenkins_Github_Git Webhooks - Fatal编程技术网

Jenkins 如何在推送某个分支时设置github webhook触发器

Jenkins 如何在推送某个分支时设置github webhook触发器,jenkins,github,git-webhooks,Jenkins,Github,Git Webhooks,我有Jenkins管道,并将github webhook配置为触发管道 如何在推送某个分支时触发管道,而不是通过推送到每个分支来触发管道?Webhook对所有分支都是通用的,github或bitbucket侧没有过滤器,您需要根据负载处理所有内容 您可以使用,插件将允许您解析负载中的某些数据,并且可以根据分支名称有条件地触发构建 应用具有分支名称的筛选器 重要提示:我必须以这种方式为github webhook指定Jenkins的URLhttp://some_user:some_password

我有Jenkins管道,并将github webhook配置为触发管道


如何在推送某个分支时触发管道,而不是通过推送到每个分支来触发管道?

Webhook对所有分支都是通用的,github或bitbucket侧没有过滤器,您需要根据负载处理所有内容

您可以使用,插件将允许您解析负载中的某些数据,并且可以根据分支名称有条件地触发构建

应用具有分支名称的筛选器

重要提示:我必须以这种方式为github webhook指定Jenkins的URLhttp://some_user:some_password@JENKINS_主机:JENKINS_端口/通用webhook触发器/调用