jenkinsci / jenkinsci/git-plugin

[JENKINS-31925] GitSCM default values not properly defined

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

Description

For use with Workflow's Snippet Generator, GitSCM needs to use @​DataBoundSetter on optional fields and ensure that the default value is equal to what an unconfigured config.jelly would set. Otherwise the user is offered unnecessary overrides such as extensions: [].

---
Originally reported by jglick, imported from: GitSCM default values not properly defined


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

Raw content of original issue

For use with Workflow's Snippet Generator, GitSCM needs to use @DataBoundSetter on optional fields and ensure that the default value is equal to what an unconfigured config.jelly would set. Otherwise the user is offered unnecessary overrides such as extensions: [].

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.