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]

    Details

    • Similar Issues:

      Description

      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...

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: