jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-66185] Multibranch Pipeline triggers unnecessary jobs for pull requests

Open
#1,366 1 comment 0 reactions 0 assignees View on GitHub
component:github-branch-pr-change-filter-plugin component:github-branch-source-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
217
Forks
398
Avg merge
30m
Merged PRs (30d)
1

Description

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? 

---
Originally reported by jimjaeger, imported from: Multibranch Pipeline triggers unnecessary jobs for pull requests


  • assignee: aytuncbeken
  • status: Open
  • priority: Major
  • component(s): github-branch-pr-change-filter-plugin, github-branch-source-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-12-02

Raw content of original issue

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? 

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.