jenkinsci / jenkinsci/branch-api-plugin

[JENKINS-75507] SCM UI improvement: Hide categories on job page if not needed

Open
#799 1 comment 0 reactions 0 assignees View on GitHub
component:branch-api-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
39
Forks
154
PR merge metrics
No merged PRs in 30d

Description

If I understand correctly the Branch Source Plugin is responsible for the different available "Discover branches/pull requests/tags" strategies within the Job configuration pages.

On our Jenkins installation we exclusively use "Discover branches" and do not want to use "Discover pull requests" because having this differentiation causes redundant builds whenever someone is creating a PR for an existing branch (Branch X will then be categorized as PR, creating a new job, triggering a new build).

However the job page UI looks like this even with just "Discover branches":

Would it makes sense to just show the "Branches (X)" label when this is the only strategy configured to simplify the UI? In other words: just show the labels of the active discovery methods?

 

 

 

---
Originally reported by kfunk, imported from: SCM UI improvement: Hide categories on job page if not needed


  • status: Open
  • priority: Minor
  • component(s): branch-api-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 20251211-141027

Raw content of original issue

If I understand correctly the Branch Source Plugin is responsible for the different available "Discover branches/pull requests/tags" strategies within the Job configuration pages.

On our Jenkins installation we exclusively use "Discover branches" and do not want to use "Discover pull requests" because having this differentiation causes redundant builds whenever someone is creating a PR for an existing branch (Branch X will then be categorized as PR, creating a new job, triggering a new build).

However the job page UI looks like this even with just "Discover branches":

Would it makes sense to just show the "Branches (X)" label when this is the only strategy configured to simplify the UI? In other words: just show the labels of the active discovery methods?

 

 

 

1 attachment

- [image-2025-04-03-09-23-41-082.png](https://issues.jenkins.io/secure/attachment/64208/image-2025-04-03-09-23-41-082.png)
> ![image-2025-04-03-09-23-41-082.png](https://issues.jenkins.io/secure/attachment/64208/image-2025-04-03-09-23-41-082.png)

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.