Concourse:使用 HTTP 请求触发作业

Mic*_*ihs 3 git continuous-integration concourse

我正在尝试在我的 Git 服务器上使用 Web 钩子触发 Concourse 作业。在Github 上关注问题后,我找到了一个端点定义。所以我试过了

curl http://10.20.30.101:8080/api/v1/pipelines/helloworld/resources/resource-tutorial/check -X POST
Run Code Online (Sandbox Code Playgroud)

哪里helloworld是我的管道resource-tutorial的名称,是我想要触发检查的资源的名称。

但是大厅回来了

404 page not found
Run Code Online (Sandbox Code Playgroud)

我究竟做错了什么?有人可以指出我正确的端点吗?

Ale*_*der 5

现在有资源的网络钩子令牌: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