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

Emails using WARNINGS_RESULT show "is not supported in this context" in Pipeline builds

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • analysis-core-plugin
    • None
    • Jenkins 2.32.3
      email-ext-plugin 2.57
      warnings-plugin 4.60

      I try to reference WARNINGS_RESULT in

       

      pipeline {

      .......

      post {

          always  {

              emailext (

                   body: '''${WARNINGS_RESULT}'''

      ........

       

      And I get the following in the email:

      WARNINGS_RESULT is not supported in this context

       

      I successfully ran WarningsPublisher in a previous step and that information is being posted for the builds.

       

          [JENKINS-43355] Emails using WARNINGS_RESULT show "is not supported in this context" in Pipeline builds

          Shannon Kerr added a comment - - edited

          Could be related to Jenkins-41861

          Shannon Kerr added a comment - - edited Could be related to Jenkins-41861

          Alex Earl added a comment -

          The warnings plugin needs to be updated to override the Run<> based version of evaluate in it's token macro.

          Alex Earl added a comment - The warnings plugin needs to be updated to override the Run<> based version of evaluate in it's token macro.

          Per Östman added a comment -

          I see this behavior too, and in a number of other analysis plugins as well (Checkstyle, Warnings, Task Scanner). Seem like a general theme with a set of plugins .

          Per Östman added a comment - I see this behavior too, and in a number of other analysis plugins as well (Checkstyle, Warnings, Task Scanner). Seem like a general theme with a set of plugins .

          Ulli Hafner added a comment -

          All plug-ins that derive from analysis-core are affected.

          Ulli Hafner added a comment - All plug-ins that derive from analysis-core are affected.

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          analysis-test
          http://jenkins-ci.org/commit/analysis-suite-plugin/8f363fa176d7763f7ae72135ab96502c2b560749
          Log:
          [FIXED JENKINS-43355] Added pipeline support for tokens.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: analysis-test http://jenkins-ci.org/commit/analysis-suite-plugin/8f363fa176d7763f7ae72135ab96502c2b560749 Log: [FIXED JENKINS-43355] Added pipeline support for tokens.

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/hudson/plugins/analysis/tokens/AbstractTokenMacro.java
          http://jenkins-ci.org/commit/analysis-core-plugin/5db28e895431c5765bd901eacca096844a6dbbb1
          Log:
          [FIXED JENKINS-43355] Added pipeline support for tokens.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/analysis/tokens/AbstractTokenMacro.java http://jenkins-ci.org/commit/analysis-core-plugin/5db28e895431c5765bd901eacca096844a6dbbb1 Log: [FIXED JENKINS-43355] Added pipeline support for tokens.

            drulli Ulli Hafner
            kerrhome Shannon Kerr
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: