-
Bug
-
Resolution: Fixed
-
Major
-
Jenkins ver 2.79
-
-
6.7
I have set up a multibranch pipeline with Bitbucket Cloud repository.
I am running jenkins locally, so I am not using webhooks.
I've set "Periodically if not otherwise run" interval to 2 minutes, but repository is not being scanned for changes. Scanning can only be triggered manualy by "Scan Multibranch pipeline now".
I've tried to set this up from blue ocean, then from old UI and no luck in both.
Also using regular Git branch source instead of Bitbucket doesn't work.
So I guess the problem is with multibranch pipeline itself.
- is related to
-
JENKINS-51049 Folders Plugin GitHub Scanning Time not being copied into the Jobs
-
- Open
-
Hmmm so https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/triggers/Trigger.java#L226 is responsible to call Trigger.checkTriggers periodically.
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/triggers/Trigger.java#L269 runs the triggers... but only on ParameterizedJobMixIn.ParameterizedJob (at least since this change) so how is the org folder getting triggered?
Ahhh folders takes care of it itself
Ok... so can people affected by this issue try running the following script in the system groovy console:
If you get a report of any of the triggers not being started then that would point to an NPE in FolderCron being the root cause.
NOTE: I do not expect the above to be the cause. My Jenkins is on 2.89.4 and on a newly created org folder it is fine as well as on an existing org folder, e.g. see the following three screenshots that illustrate the org folder scan being daily and the multibranch scans being daily - but at different points in time - and I had not logged into my Jenkins in over a week before taking these screenshots!