How do I get Jenkins to build on push to a BitBucket git repository?

后端 未结 7 1150
一个人的身影
一个人的身影 2020-12-12 18:21

I have a git repository hosted on BitBucket, and have set up SSH authentication between the repository and my Jenkins server. I can build on Jenkins manually, but cannot ge

7条回答
  •  情书的邮戳
    2020-12-12 18:49

    I was struggling with this issue for long, and couldn't find a solution in Jenkins documentation, I found here a solution in Cloudbees support site.

    You just need to add these tow webhooks to your bitbucket repo and it works very fine :

    https://JENKIN_URL/bitbucket-scmsource-hook/notify
    https://JENKIN_URL/bitbucket-hook
    

    And i work for all pipelines even MultiBranch ones.

    Hope this helps someone ;)

    ADA

提交回复
热议问题