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

Cannot use a simple Groovy Script

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Labels:
      None
    • Environment:
      Jenkins ver. 1.656
      Extended Choice Parameter Plug-In 0.63
    • Similar Issues:

      Description

      I try to create a simpel textbox or a simple select with a groovy script. It is never working. On this page: http://stackoverflow.com/questions/24730186/jenkins-extended-parameter-plugin-groovy-script , there is a comment that is suggesting to just use return ["1","2","3"] as script.

      I tried as in the screenshot with : return ["a","b","c",]

      But nothing comes out.

        Attachments

        1. build.png
          build.png
          23 kB
        2. build1.png
          build1.png
          30 kB
        3. config.png
          config.png
          40 kB
        4. Selection_007.png
          Selection_007.png
          65 kB
        5. Selection_008.png
          Selection_008.png
          3 kB

          Activity

          Hide
          vimil vimil added a comment -

          Dav z,

          You should use an absolute path. Let me verify that I am able to repro your issue and get back to you

          Show
          vimil vimil added a comment - Dav z, You should use an absolute path. Let me verify that I am able to repro your issue and get back to you
          Hide
          vimil vimil added a comment -

          I tested this with version 0.63 version of the plugin on jenkins 1.654. and was not able to repro the issue. Below is the screenshot of my configuration.

          Show
          vimil vimil added a comment - I tested this with version 0.63 version of the plugin on jenkins 1.654. and was not able to repro the issue. Below is the screenshot of my configuration.
          Hide
          nandakishore Nanda Kishore added a comment -

          I can use a groovy script. There was problem with a regex I was using in the script. Thanks and sorry of the trouble.

          Show
          nandakishore Nanda Kishore added a comment - I can use a groovy script. There was problem with a regex I was using in the script. Thanks and sorry of the trouble.
          Hide
          vimil vimil added a comment -

          I am marking this issue as cannot repro

          Show
          vimil vimil added a comment - I am marking this issue as cannot repro
          Hide
          dawez Davide Z. added a comment -

          All worked at the end for me. Using the absolute path did the trick

          Show
          dawez Davide Z. added a comment - All worked at the end for me. Using the absolute path did the trick

            People

            • Assignee:
              vimil vimil
              Reporter:
              dawez Davide Z.
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: