Bug 1614695
| Summary: | Run JenkinsPipelineBuildStrategy with empty environment variable values could lead to an error | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Yuxiang Zhu <yuxzhu> |
| Component: | ImageStreams | Assignee: | Gabe Montero <gmontero> |
| Status: | CLOSED ERRATA | QA Contact: | XiuJuan Wang <xiuwang> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.11.0 | CC: | aos-bugs, bparees, gmontero, jokerman, mmccomas, wsun, wzheng |
| Target Milestone: | --- | ||
| Target Release: | 3.11.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: the openshift sync plugin for jenkins did not prevent empty string environment variables in pipeline strategy build configs from becoming null string parameters
Consequence: NullPointerExceptions would occur in jenkins pipelines
Fix: check the environment variable value for null and replace with empty string when setting the jenkins job parameter value
Result: pipelines with such environment variables now work
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-10-11 07:24:08 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
Yuxiang Zhu
2018-08-10 08:52:42 UTC
PR https://github.com/openshift/jenkins-sync-plugin/pull/250 is addressing this OK, brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/jenkins-2-rhel7 v3.11.0.20180814.150701 27d969d77979 16 hours ago 1.39GB has v1.0.25 of the sync plugin. Ready for QE .... Can't reproduce this bug with jenkins-2-rhel7:v3.11.0-0.17.0 which has installed v1.0.25 of the sync plugin. Thanks for the rapid response. This issue is not fully fixed by PR#250, which only does the substitution before a job run is triggered by `oc start-build` or from Web UI. The fix should also be applied to the Jenkins job creation process, otherwise a job run triggered by timer or poll-scm will also fail with NullPointerException. Additional fix is provided by https://github.com/openshift/jenkins-sync-plugin/pull/256. v1.0.27 has been initiated since the merging of https://github.com/openshift/jenkins-sync-plugin/pull/256 I'll defer to QA on the need to reverify where they include the poll-scm scenario once a brew-pulp image has v1.0.27. 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, 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/RHBA-2018:2652 |