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

DSL for choiceParam not working

XMLWordPrintable

      The following DSL does not correctly generate the choices - a, b, c - in the generated job. See attached screen shot.

      freeStyleJob('rag-test-job') {
      properties{
      promotions {
      promotion {
      name('Development')
      conditions {
      manual('araguero', parameters

      { choiceParam('myParameterName',['a','b','c'],'my description') }

      )
      }
      actions

      { shell('echo hello;') }

      }
      }
      }
      }

        1. Screen Shot 2016-10-11 at 1.27.35 PM.png
          Screen Shot 2016-10-11 at 1.27.35 PM.png
          32 kB
        2. 1.png
          1.png
          18 kB
        3. 2.png
          2.png
          59 kB

            Unassigned Unassigned
            jhavero Alex Raguero
            Votes:
            6 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: