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

Exception caught evaluating condition: [org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Undefined parameter var in token ENV], action = [Fail the build]

XMLWordPrintable

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

      In a "Conditional step (single)" where Run is "Regular expression match" and Label is "${ENV,var="NODE_LABELS"}" I sometimes get "Exception caught evaluating condition: [org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Undefined parameter var in token ENV], action = [Fail the build]" errors.

      The exceptions started to appear after the update of the Token Macro Plugin to version 2.0 (from 1.12.1).

      As a side note: I only need to use a regex match on NODE_LABELS because there is no simpler way to identify windows nodes that I know of...

        1. Jenkins-Plugin-Versions-20161109.txt
          4 kB
          Ing. Christoph Obexer
        2. token-macro.hpi
          436 kB
          Alex Earl

            slide_o_mix Alex Earl
            cobexer Ing. Christoph Obexer
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: