Description of problem: Below warning appears when try to use "Add Build Step"->"Create resources in OpenShift": Started by user Jenkins Admin Building in workspace /var/lib/jenkins/jobs/testplugin/workspace BUILD STEP: OpenShiftCreator in perform on namespace test ERROR: Build step failed with exceptionjava.lang.IllegalArgumentException: Invalid character: h at org.jboss.dmr.JSONParserImpl.invalid(JSONParserImpl.java:136) at org.jboss.dmr.JSONParser.yyLex(JSONParser.java:596) at org.jboss.dmr.JSONParser.yyParse(JSONParser.java:662) at org.jboss.dmr.ModelNode.fromJSONString(ModelNode.java:1472) at com.openshift.jenkins.plugins.pipeline.OpenShiftCreator.coreLogic(OpenShiftCreator.java:131) at com.openshift.jenkins.plugins.pipeline.OpenShiftBaseStep.perform(OpenShiftBaseStep.java:147) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) 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:534) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Build step 'Create resource(s) in OpenShift' marked build as failure Finished: FAILURE Version-Release number of selected component (if applicable): jenkins-1-rhel7 f708901345d7 How reproducible: always Steps to Reproduce: 1. Create a project 2. $oc policy add-role-to-user admin system:serviceaccount:test:default -n test 3. $oc new-app -f https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/jenkins-ephemeral-template.json 4. Go to jenkins job page click "new item" -->write item name: testplugin-->select "Freestyle project"-->save 5. select job "testplugin" to Configure click "Add build step"---->"Create resources in OpenShift " , and configure below: 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 6. Save the changes and click Build Now Actual results: Job failed Expected results: Job should succeed Additional info:
You need to paste the actual json content into the field, not the url to the json.
Gabe, we should probably make that field a textbox, not a textfield.
yep, good call Ben, or maybe a "textarea" (described just before textbox at https://jenkins-ci.org/maven-site/jenkins-core/jelly-taglib-ref.html#form:textarea). i'll play / compare and incorporate in my next push for the plugin
Yes, should input the content of the json file, thanks! Closing this bug now.
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