Status: Closed (View Workflow)
Resolution: Not A Defect
Bitbucket Plugin 1.1.29
Bitbucket Branch Source Plugin 2.9.11
We are using Jenkins and Bitbucket. In every Project that we want to build automatically we have a webhook defined in Bitbucket that notifies Jenkins. For most of our projects this works fine but I realized that new projects are not found (yes, I added a Jenkinsfile). Jenkins just ignores the new projects. I think this might be since I updated Jenkins from 2.222.4, but I am not sure. In Bitbucket i see that the webhook was triggered and the request to Jenkins returned a 200.
Thank you for your answer!
We have a webhook in Bitbucket that notifies Jenkins when something in the project changes (e.g. push to master). Jenkins then scannes the project and builds it if a Jenkinsfile ist there. It always worked, we never had problems, also with new projects. If I want a new project built by Jenkins, I just add a Jenkinsfile and a Webhook in Bitbucket. Everything else used to work automatically.
How can I trigger a scan of the whole organization folder manually?
amygdala there is currently no such feature on Bitbucket sadly that can notify us if a new repository has been created. The plugin has always been dependent on the "org folder" being scanned.
You can either do it manually:
Or ideally set an interval (but I would avoid one thats too frequent as its quite tolling towards the SCM):
Thank you for your answer. However, I don't have the button for triggering the scan.
And for the intervall scanning: I already have that configured but somehow the last scan was on the october 1st. Maybe this is the actual problem... the organization folder is not scanned anymore. How do I fix that?
Can you check if this is a permission thing? That button will not be visible for all types of users.
If the interval is not working, it might be indicated in the scan logs or jenkins logs - but generally they should work
Did you scan your organization folder? I don't think there is an automated way (yet) to detect new repositories.