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

TokenMacro.expand() duplicates private macros when called multiple times

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • token-macro-plugin
    • None
    • token-macro-1.7

      When calling expand() with private macros, those get added to the all() list.
      Repeating the command adds them again (duplicates them).

      I believe the proper behaviour should be one of:
      1. Do not add them to the all() list, those are private macros.

      or

      2. Only add them once.

      P.S. This affects the use of email-ext-plugin-2.30.2.

      Thank you,
      Bartosz Zak

            kohsuke Kohsuke Kawaguchi
            bartosz_zak Bartosz Zak
            Votes:
            6 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: