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

withEnv should accept Map as well as List

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The withEnv step should accept a java.util.{{Map}}, which is the natural form of an environment variable list. It expects a java.util.List, and dies with

      java.lang.UnsupportedOperationException: must specify $class with an implementation of interface java.util.List
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.resolveClass(DescribableModel.java:503)
        ...
      Caused: java.lang.IllegalArgumentException: Could not instantiate {overrides={}} for EnvStep(overrides: String[])
        ...
      

      if a Map is passed.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              ringerc Craig Ringer
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: