On my Jenkins I configured:
Source Code Management
Git repository: https://bitbucket.org/username/project.git
credentials: username/
For someone like me who is new to jenkins
and CI\CD
:
We should add webhook
s 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.
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.