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

Groovy script returning a Map is not handled properly with timer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • active-choices-plugin
    • None
    • Jenkins 2.303.3
      Active Choices Plug-in 2.6.1

      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.

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

              Created:
              Updated:
              Resolved: