我正在尝试使用 Git 服务器上的 Web 挂钩触发 Concourse 作业。按照此Github 上的问题 https://github.com/concourse/concourse/issues/331我找到了一个端点定义 https://github.com/concourse/atc/blob/d54a0cc5ce9a9b9aefb7db4aaca077cb3caf2dd5/routes.go#L110。所以我尝试了
curl http://10.20.30.101:8080/api/v1/pipelines/helloworld/resources/resource-tutorial/check -X POST
where helloworld
是我的管道的名称,resource-tutorial
是我要触发检查的资源的名称。
但大厅回来了
404 page not found
我究竟做错了什么?有人能指出我正确的终点吗?
目前,资源有网络钩子令牌:https://concourse-ci.org/configuring-resources.html#webhook_token https://concourse-ci.org/configuring-resources.html#webhook_token
/api/v1/teams/TEAM_NAME/pipelines/PIPELINE_NAME/resources/RESOURCE_NAME/check/webhook?webhook_token=WEBHOOK_TOKEN
您可以在此处添加网络挂钩:https://github.com/<username>/<repo>/settings/hooks/new
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)