jenkinsci / jenkinsci/git-plugin
[JENKINS-30087] Jenkins doesn't fail when nonexistant Branch Name is specified
- 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:
- Create a Project with 2 git repositories
- For "Branches to build" specify an existing branch
- build the project
- Change "Branches to build" to "non_existing_branch"
- 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
Raw content of original issue
This only happens when multiple git repositories are used.
Steps to reproduce:
- Create a Project with 2 git repositories
- For "Branches to build" specify an existing branch
- build the project
- Change "Branches to build" to "non_existing_branch"
- build again
Expected result:
The build should failResult:
The build succeeds. The last checkout is simply left as is.
- environment:
jenkins: 1.609.2, git-plugin: 2.4.0
Contributor guide
Assessment
This issue has not been assessed yet.