BitBucket Jenkins doesn't automatically build

后端 未结 14 948
予麋鹿
予麋鹿 2020-12-30 21:44

On my Jenkins I configured:

Source Code Management

Git repository: https://bitbucket.org/username/project.git

credentials: username/

相关标签:
14条回答
  • 2020-12-30 22:27

    For someone like me who is new to jenkins and CI\CD:


    We should add webhooks individually for each repository we want to build automatically.

    I was trying to build a project and i added jenkins url as webhook to another project and mistakenly thought that the webhook is universal for all projects under a bitbucket account. But which is not. Good little thing that can be easily overlooked sometimes.

    Also, i used option: Build when a change is pushed to BitBucket not Poll SCM , other answers suggested that we should use that, but Build when a change is pushed to BitBucket option worked for me.

    0 讨论(0)
  • 2020-12-30 22:30

    I'm doing the same but without the Bitbucket Plugin in my Jenkins.

    I'm using the Jenkins Plugin in my Bitbucket. I've configured the webhook on each repository and pointing with the simply Jenkins URL. Then, into every job that I need, just leave checked the "Poll SCM" with/without schedule (is not required).

    With that is working really well and I avoid another plugin installation in my Jenkins.

    0 讨论(0)
提交回复
热议问题