BitBucket WebHook Jenkins

前端 未结 2 497
暖寄归人
暖寄归人 2021-02-04 15:30

I\'d like to configure bitbutcket to trigger a jenkins build.

I\'ve spent some time researching this and all the answers are from a few years ago, and have not found any

2条回答
  •  独厮守ぢ
    2021-02-04 15:58

    Is your Jenkins URL accessible from your bitbucket server? If yes that it should be fairly simple to do it. You add the webhook in your repository as http:///git/notifyCommit?url=. When jenkins receives this POST, it automatically triggers builds on those jobs that use this git repo with that URL you give in webhook.
    But you also need to make sure your Build Schedule is set to empty for those jobs. otherwise it wont get triggered. You can specify a branch in webhook URL too
    See the Push Notification from repository here
    https://wiki.jenkins.io/display/JENKINS/Git+Plugin

提交回复
热议问题