Q:

Concourse Webhook to Git

Environment: 
BitBucket
Concourse 3.14.0

Wondering is it possible to configure Concourse pipeline with Git webhook which will check if new commit has happened and it would trigger a pipeline build based on that trigger?  I looked at https://concourse-ci.org/resources.html#resource-webhook-token, but it does not tell me how to get a webhook token from Concourse and if it does support what I am asking.
Any feedback is very much appreciated.

A:

I think you are looking for this resource - https://github.com/concourse/git-resource 
It automatically checks for any new commit in your git repository and you can run other jobs based on that.
Example pipeline.yml:
resources:
- name: git-repo
  type: git
  source:
    uri: git@github.com:concourse/git-resource.git
    branch: master
    private_key: {{GIT_KEY}}

jobs: 
- name: run-on-new-commit
- get: git-repo
  trigger: true
- task: do-something-else

