jenkinsci / jenkinsci/git-plugin

[JENKINS-28598] JenkinsAbstractProjectListener ::onNotifyCommit() totally fails if a runtime exception happens in one item

Open
#2,664 5 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

JenkinsAbstractProjectListener::onNotifyCommit() checks all projects with SCM triggers sequentially. Then it calls getSCMs() of the project and processes SCMs. If the method somehow fails (e.g. NPE), the method exists => one corrupted project may cause a total outage of Git SCM triggers

Example of the issue: JENKINS-26761 (caused by workflow-plugin)

---
Originally reported by oleg_nenashev, imported from: JenkinsAbstractProjectListener ::onNotifyCommit() totally fails if a runtime exception happens in one item


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

Raw content of original issue

JenkinsAbstractProjectListener::onNotifyCommit() checks all projects with SCM triggers sequentially. Then it calls getSCMs() of the project and processes SCMs. If the method somehow fails (e.g. NPE), the method exists => one corrupted project may cause a total outage of Git SCM triggers

Example of the issue: JENKINS-26761 (caused by workflow-plugin)

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.