jenkinsci / jenkinsci/git-plugin

[JENKINS-46416] Pipeline always poll the last build branch only

Open
#3,179 2 comments 0 reactions 0 assignees View on GitHub
component:git-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

We have a few single pipeline job that is setup to run when changes in different project folder happen. It will get instructed to poll when a `curl http://ourjenkins/git/notifyCommit?url=git_url` happen.

```

Repo/

    ProjectA/

    ProjectB/

```

We have set branches to build to be `any`, however, it always only polls the last build branch instead of the latest branch.

---
Originally reported by zac_kwan, imported from: Pipeline always poll the last build branch only


  • status: Open
  • priority: Minor
  • component(s): git-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 4
  • imported: 2025-12-02

Raw content of original issue

We have a few single pipeline job that is setup to run when changes in different project folder happen. It will get instructed to poll when a `curl http://ourjenkins/git/notifyCommit?url=git_url` happen.

```
Repo/
    ProjectA/

    ProjectB/

```

We have set branches to build to be `any`, however, it always only polls the last build branch instead of the latest branch.

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.