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

          cobexer Ing. Christoph Obexer created issue -
          cobexer Ing. Christoph Obexer made changes -
          Field Original Value New Value
          Attachment Jenkins-Plugin-Versions-20161109.txt [ 34776 ]
          slide_o_mix Alex Earl made changes -
          Attachment token-macro.hpi [ 35659 ]
          slide_o_mix Alex Earl made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]

            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: