[JIRA] [core] (JENKINS-34167) Add Build Step -> Execute Shell returns 500 from render

2 views
Skip to first unread message

jbramley@corelogic.com (JIRA)

unread,
Apr 12, 2016, 9:30:01 AM4/12/16
to jenkinsc...@googlegroups.com
Justin Bramley created an issue
 
Jenkins / Bug JENKINS-34167
Add Build Step -> Execute Shell returns 500 from render
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: jenkins_stacktrace.txt
Components: core
Created: 2016/Apr/12 1:29 PM
Environment: Jenkins ver. 1.653

on
Red Hat Enterprise Linux Server release 6.7 (Santiago)

with
java version "1.7.0_85"
OpenJDK Runtime Environment (rhel-2.6.1.3.el6_7-x86_64 u85-b01)
OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode)
Priority: Major Major
Reporter: Justin Bramley

When configuring a project, going to Add Build Step and selecting Execute Shell results in a 500 error with a stack trace like this (full trace attached):

Caused by: groovy.lang.MissingPropertyException: No such property: command for class: java.lang.String
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
        at org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:63)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetPropertySafe(AbstractCallSite.java:333)
        at hudson.tasks.Shell.config$_run_closure1.doCall(config.groovy:28)

Adding "Execute Windows batch command", "Invoke Ant", or "Invoke top-level Maven targets" works.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

dbeck@cloudbees.com (JIRA)

unread,
Apr 12, 2016, 10:28:01 AM4/12/16
to jenkinsc...@googlegroups.com
Daniel Beck commented on Bug JENKINS-34167
 
Re: Add Build Step -> Execute Shell returns 500 from render

Are you running Jenkins behind a reverse proxy? Does the URL to Jenkins configured in the global configuration match the URL you use to access Jenkins? Are there other resources returning HTTP error codes in then browser's console (e.g. when loading the form)?

jbramley@corelogic.com (JIRA)

unread,
Apr 12, 2016, 10:42:02 AM4/12/16
to jenkinsc...@googlegroups.com

We're running apache as the frontend with tomcat behind it, so in the words of our SA, "technically yes." The URL in jenkins.model.JenkinsLocationConfiguration.xml is the URL I use to access the site. No other resources return 500 when loading the configuration form (or anywhere else that I've seen).

jbramley@corelogic.com (JIRA)

unread,
Apr 14, 2016, 1:35:01 PM4/14/16
to jenkinsc...@googlegroups.com
Justin Bramley updated an issue
 
Change By: Justin Bramley
When configuring a project, going to Add Build Step and selecting Execute Shell results in a 500 error with a stack trace like this (full trace attached):

{noformat}

Caused by: groovy.lang.MissingPropertyException: No such property: command for class: java.lang.String
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
        at org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:63)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetPropertySafe(AbstractCallSite.java:333)
        at hudson.tasks.Shell.config$_run_closure1.doCall(config.groovy:28)
{noformat}

Adding "Execute Windows batch command",
 -  "Invoke Ant" - , or "Invoke top-level Maven targets" works.

After adding an Ant under "Manage Jenkins," Invoke Ant fails with a similar issue:
{noformat}
Caused by: groovy.lang.MissingPropertyException: No such property: ant for class: java.lang.String

at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
at org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:63)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetPropertySafe(AbstractCallSite.java:333)
at hudson.tasks.Ant.config$_run_closure1_closure4_closure5.doCall(config.groovy:32)
{noformat}
Reply all
Reply to author
Forward
0 new messages