Skip to content

Git Parameter inherits branches from preceding Git parameters #333

@recaph

Description

@recaph

Jenkins and plugins versions report

There is a persistent issue where a Git parameter incorrectly includes branches from all preceding Git parameter definitions

What Operating System are you using (both controller, and any agents involved in the problem)?

Jenkins

Reproduction steps

Steps to Reproduce:
Define multiple Git parameters in a single configuration (e.g., PARAM_A and PARAM_B).

Configure PARAM_B with a specific repository or filter.

Observe that PARAM_B displays its own branches plus all branches associated with PARAM_A.

Expected Results

Each parameter should only display branches relevant to its own specific configuration/repository.

Actual Results

Subsequent parameters inherit and append the branch lists of all preceding parameters.

Anything else?

No response

Are you interested in contributing a fix?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions