I am using an organization folder in Jenkins to discover all repositories that contain a Jenkinsfile.
It had been working fine until recently. At some point, the develop branch of one of the repositories was removed. That branch does exist and contains a valid Jenkinsfile.
When I rescan the project the log shows how it examines the branch but says nothing about finding or not finding the Jenkinsfile:
Looking up myorg/myrepo for branches
Checking branch develop from myorg/myrepo
Checking branch master from myorg/myrepo
‘Jenkinsfile’ found
Met criteria
...
What could be the problem here? Any advice about how to troubleshoot this?
I've tried the usual solutions: delete the branch, create new ones that are detected without any problem, recreate the develop branch...