Concourse:使用HTTP请求触发作业 [英] Concourse: Trigger a job with a HTTP request
问题描述
我试图用我的Git服务器上的Web钩子触发Concourse作业。在 Github上发布之后,我发现了一个端点定义。所以我试过了
curl http://10.20.30.101:8080/api/v1/pipelines/helloworld/resources/resource- tutorial / check -X POST
其中 helloworld
是我管道的名称, resource-tutorial
是我想要触发检查的资源的名称。
但是Concourse会返回
404页未找到
我做错了什么?有人可以指点我到正确的端点吗?
现在有资源的web钩子标记:
https://concourse-ci.org/configuring-resources.html#webhook_token
/ api / v1 / teams / TEAM_NAME / pipeline / PIPELINE_NAME / resources / RESOURCE_NAME / check / webhook?webhook_token = WEBHOOK_TOKEN
你可以在这里添加web钩子:
https://github.com/< 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 http://10.20.30.101:8080/api/v1/pipelines/helloworld/resources/resource-tutorial/check -X POST
where 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 found
What am I doing wrong? Can someone point me to the correct endpoint?
For now there is web hook token for resource: 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
You can add web hook here:
https://github.com/<username>/<repo>/settings/hooks/new
这篇关于Concourse:使用HTTP请求触发作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!