我试图用我的Git服务器上的Web钩子触发Concourse作业。在 Github上发布之后,我发现了一个端点定义。所以我试过了
curl 10.20.30.101:8080/api/v1/pipelines/helloworld/resources/resource- tutorial / check -X POST其中 helloworld 是我管道的名称, resource-tutorial 是我想要触发检查的资源的名称。
但是Concourse会返回
404页未找到我做错了什么?有人可以指点我到正确的端点吗?
解决方案现在有资源的web钩子标记: concourse-ci/configuring-resources.html#webhook_token
/ api / v1 / teams / TEAM_NAME / pipeline / PIPELINE_NAME / resources / RESOURCE_NAME / check / webhook?webhook_token = WEBHOOK_TOKEN
你可以在这里添加web钩子: github/< username> /<repo> / settings / hooks / new
I am trying to trigger a Concourse job with a web hook on my Git server. Following this issue on Github I found an endpoint definition. So I tried
curl 10.20.30.101:8080/api/v1/pipelines/helloworld/resources/resource-tutorial/check -X POSTwhere helloworld is the name of my pipeline and resource-tutorial is the name of the resource for which I want to trigger a check.
But Concourse returns
404 page not foundWhat am I doing wrong? Can someone point me to the correct endpoint?
解决方案For now there is web hook token for resource: concourse-ci/configuring-resources.html#webhook_token
/api/v1/teams/TEAM_NAME/pipelines/PIPELINE_NAME/resources/RESOURCE_NAME/check/webhook?webhook_token=WEBHOOK_TOKEN
You can add web hook here: github/<username>/<repo>/settings/hooks/new
更多推荐
Concourse:使用HTTP请求触发作业
发布评论