jenkinsci / jenkinsci/git-plugin

[JENKINS-30087] Jenkins doesn't fail when nonexistant Branch Name is specified

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

Description

This only happens when multiple git repositories are used.

Steps to reproduce:



  1. Create a Project with 2 git repositories

  2. For "Branches to build" specify an existing branch

  3. build the project

  4. Change "Branches to build" to "non_existing_branch"

  5. build again

Expected result:

The build should fail

Result:

The build succeeds. The last checkout is simply left as is.

---
Originally reported by stefank, imported from: Jenkins doesn't fail when nonexistant Branch Name is specified


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

Raw content of original issue

This only happens when multiple git repositories are used.

Steps to reproduce:



  1. Create a Project with 2 git repositories

  2. For "Branches to build" specify an existing branch

  3. build the project

  4. Change "Branches to build" to "non_existing_branch"

  5. build again

Expected result:
The build should fail

Result:
The build succeeds. The last checkout is simply left as is.

  • environment: jenkins: 1.609.2, git-plugin: 2.4.0

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.