Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-34167

Add Build Step -> Execute Shell returns 500 from render

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None

      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.

      After adding an Ant under "Manage Jenkins," Invoke Ant fails with a similar issue:

      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)
      

            Unassigned Unassigned
            jbramleycl Justin Bramley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: