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

Can not use token (like WARNINGS_NEW) in pre-send script email

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I try to send an email only if I have new warnings.
      I used the email-ext plugin. in the core of the email I can use the token WARNINGS_NEW. but when I try to cancel the email in the pre-send script if WARNINGS_NEW = 0 it does not recognize the token.

        Attachments

          Activity

          Hide
          slide_o_mix Alex Earl added a comment -

          That's correct, you would need to use code to retrieve the warning count.

          Show
          slide_o_mix Alex Earl added a comment - That's correct, you would need to use code to retrieve the warning count.
          Hide
          kittyfr Kristel Touron added a comment -

          Do you have any idea where is the info stored?
          I can't find any work around in Google.

          Show
          kittyfr Kristel Touron added a comment - Do you have any idea where is the info stored? I can't find any work around in Google.
          Hide
          slide_o_mix Alex Earl added a comment -

          I'd take a look at the code for the Warnings Plugin. https://github.com/jenkinsci/warnings-plugin

          Show
          slide_o_mix Alex Earl added a comment - I'd take a look at the code for the Warnings Plugin. https://github.com/jenkinsci/warnings-plugin
          Hide
          slide_o_mix Alex Earl added a comment -

          Added support for this for 2.40

          Show
          slide_o_mix Alex Earl added a comment - Added support for this for 2.40
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Alex Earl
          Path:
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
          http://jenkins-ci.org/commit/email-ext-plugin/72fcd04ef301a8e45df268945ce48fa146aa56ca
          Log:
          Fix JENKINS-26286

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Earl Path: src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java http://jenkins-ci.org/commit/email-ext-plugin/72fcd04ef301a8e45df268945ce48fa146aa56ca Log: Fix JENKINS-26286

            People

            • Assignee:
              slide_o_mix Alex Earl
              Reporter:
              kittyfr Kristel Touron
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: