Bug 2030692
Summary: | NPE in PipelineJobListener.upsertWorkflowJob | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Gabe Montero <gmontero> |
Component: | Jenkins | Assignee: | Gabe Montero <gmontero> |
Status: | CLOSED ERRATA | QA Contact: | Jitendar Singh <jitsingh> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.8 | CC: | aos-bugs, gallen, irum, pbhattac, pkumari, spandura |
Target Milestone: | --- | ||
Target Release: | 4.10.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
* Before this update, version 1.0.48 of the OpenShift Jenkins Sync Plugin introduced a `NullPointerException` error when Jenkins notified the plug-in of new jobs that were not associated with an OpenShift Jenkins Pipeline Build Strategy Build Config. Ultimately, this error was benign because there was no `BuildConfig` object to associate with the incoming Jenkins Job. Core Jenkins ignored the exception in our plug-in and moved on to the next listener. However, a long stack trace showed up in the Jenkins log that distracted users. With this update, the plug-in resolves the issue by making the proper checks to avoid this error. (link:https://bugzilla.redhat.com/show_bug.cgi?id=2030692[BZ#2030692])
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2022-03-10 16:32:55 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Gabe Montero
2021-12-09 13:59:14 UTC
Alice FYI ... this fix is separate from the other stuff you are tracking right now. If you think you are going to touch PipelineJobListener, perhaps you can at least address the NPE, by not calling property.GetNamespace() unless property is non null. But if you don't think you are going to touch it, I'll get a PR up real quick to fix it. ok this looks like a benign but noisy / distracting NPE for users 1) it is the case where the incoming workitem is NOT associated with a jenkins pipeline strategy build config 2) jenkins catches this exception and moves onto the next registered listener ... the associated job is still created I have already verified the `NullPointerException` thing with https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=1830329, which was released in https://bugzilla.redhat.com/show_bug.cgi?id=2016058 and I did not find any such error Release noted in 4.10 with https://github.com/openshift/openshift-docs/pull/40899 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:0056 |