I saw in the resource documentation that I can use a
webhook_token on a resource. Which I’m doing like this:
--- resources: - name: devops-repo type: git source: branch: master uri: firstname.lastname@example.org:... private_key: ((private_key)) webhook_token: foobarbaz check_every: 24h jobs: - name: some-job plan: get: devops-repo trigger: true
So how can I actually trigger this resource? If I curl it with a GET request using
curl https://CONCOURSE_URL/api/v1/teams/main/pipelines/MY-PIPELINE/resources/devops-repo/check/webhook?webhook_token=foobarbaz, then I get a
method not allowed error. If I curl it with a POST using
curl -X POST https://CONCOURSE_URL/api/v1/teams/main/pipelines/MY-PIPELINE/resources/devops-repo/check/webhook?webhook_token=foobarbaz, I get a 200 response, but no other feedback to curl, and my pipeline does not fire.
Anyone have an example of how to curl a pipeline using a
Additionally, if I only care about triggering this pipeline with HTTP webhook requests (or manually, in the Concourse UI), and I never want to trigger it based on git commits, do I still need
Thanks in advance.