we have a mutlibranch pipeline connected to Github Enterprise repo, that has a filter to get one main branch and pull requests to create jobs. The branches have a configured Jenkinsfile with a pipeline included. The most of the time it works as expected but sometimes (often) the branch indexing goes crazy and triggers unnecessary jobs.
It forgets that there is already a build for that specific level on the pullrequest or branch and triggers a build. When it happens it feels like jenkins forgot everything and triggers a builds for a full bunch of pull requests.
Can you advice what to do?
What logs or information we can provide to get a fix for the issue?