-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
4.14, 4.15, 4.16
-
False
-
None
-
False
-
-
-
Moderate
Description of problem:
User with the Openshift Client Plugin for Jenkins is having the deprecation warning for DeploymentConfigs shared in the logs when a selector is used, which is believed to be erroneous behavior. This occurred after upgrading to OpenShift 4.14.
Version-Release number of selected component (if applicable):
OCP 4.14.22 Jenkins 2.426.3 (external server) OpenShift Client Jenkins Plugin 1.1.0.424.v829cb_ccf8798
How reproducible:
Issue is constant in user environment
Steps to Reproduce:
1. Install Jenkins slaves and plugin to OCP 4.13 cluster 2. Upgrade to 4.14 3. Attempt to use plugin, like so:
def deployments = openshift.selector("dc", dcName) latestDeploymentVersion = deployments.object().status.latestVersion
Actual results:
Error is reported by Jenkins (plugin?) that indicates the deprecation warning for DeploymentConfigs is polluting the output expected from above command:
Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: dc762b9b-50a7-4352-aed6-027858e84314
groovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or objectThe current character read is 'W' with an int value of 87
Unable to determine the current character, it is not a string, number, array, or object
line number 1
index number 0
Warning:DeploymentConfig is deprecated in v4.14+, unavailable in v4.10000+
Expected results:
No error, as the warning is properly ignored by selector.
Additional info: