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

Groovy script returning a Map is not handled properly with timer

    XMLWordPrintable

Details

    • Bug
    • Status: Fixed but Unreleased (View Workflow)
    • Major
    • Resolution: Fixed
    • active-choices-plugin
    • None
    • Jenkins 2.303.3
      Active Choices Plug-in 2.6.1

    Description

      When the Groovy script uses a Map as return value, the default value of the parameter is invalid. It uses the Map values (descriptions) instead of the Map keys (actual parameter values).

      Example :

      return ['A': 'Description for A:selected', 'B': 'Description for B', 'C': 'Description for C:selected']

      If the job is triggered by a timer, the parameter value should be :

      A,C

      but the actual parameter value is :

      Description for A,Description for C.

      Attachments

        Activity

          There are no comments yet on this issue.

          People

            kinow Bruno P. Kinoshita
            ericcitaire Eric Citaire
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: