Bug 1311048 - Error appears when creating resource(s) in openshift via jenkins
Summary: Error appears when creating resource(s) in openshift via jenkins
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Troy Dawson
QA Contact: Wang Haoran
URL:
Whiteboard:
Depends On: 1299709
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-23 09:23 UTC by wewang
Modified: 2016-05-12 16:30 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1299709
Environment:
Last Closed: 2016-05-12 16:30:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:1064 0 normal SHIPPED_LIVE Important: Red Hat OpenShift Enterprise 3.2 security, bug fix, and enhancement update 2016-05-12 20:19:17 UTC

Description wewang 2016-02-23 09:23:43 UTC
+++ This bug was initially created as a clone of Bug #1299709 +++

Error appears when creating resource(s) in openshift, 

openshift3/jenkins-1-rhel7 ac9dd63162a5

steps:
1. Create jenkins
 $ oc new-project test
 $oc policy add-role-to-user admin system:serviceaccount:test:default -n test 
 $oc new-app -f https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/jenkins-ephemeral-template.json 
2. create job 
$ oc new-project test1
$ oc policy add-role-to-user edit system:serviceaccount:test:default -n test1 
3. create a job and configure
   a. The JSON or YAML that defines the OpenShift resource(s) to create : paste https://raw.githubusercontent.com/openshift/origin/master/examples/hello-openshift/hello-pod.json context here
4. Check the console out page
 
Building in workspace /var/lib/jenkins/jobs/test/workspace
java.lang.IllegalAccessException: Class com.openshift.jenkins.plugins.pipeline.OpenShiftBaseStep can not access a member of class com.openshift.jenkins.plugins.pipeline.OpenShiftCreator with modifiers "private static final"
	at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:102)
	at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:296)
	at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:288)
	at java.lang.reflect.Field.get(Field.java:390)
	at com.openshift.jenkins.plugins.pipeline.OpenShiftBaseStep.setFields(OpenShiftBaseStep.java:49)
	at com.openshift.jenkins.plugins.pipeline.OpenShiftBaseStep.inspectBuildEnvAndOverrideFields(OpenShiftBaseStep.java:76)
	at com.openshift.jenkins.plugins.pipeline.OpenShiftBaseStep.perform(OpenShiftBaseStep.java:141)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
	at hudson.model.Build$BuildExecution.build(Build.java:205)
	at hudson.model.Build$BuildExecution.doRun(Build.java:162)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
	at hudson.model.Run.execute(Run.java:1741)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:408)


BUILD STEP:  OpenShiftCreator in perform on namespace test1


BUILD STEP EXIT:  OpenShiftCreator HTTP client exception
Build step 'Create resource(s) in OpenShift' marked build as failure
Finished: FAILURE

Comment 7 errata-xmlrpc 2016-05-12 16:30:14 UTC
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/RHSA-2016:1064


Note You need to log in before you can comment on or make changes to this bug.