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

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

    XMLWordPrintable

Details

    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

          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

          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
          slide_o_mix Alex Earl added a comment -

          Added support for this for 2.40

          slide_o_mix Alex Earl added a comment - Added support for this for 2.40
          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

          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

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

          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.
          slide_o_mix Alex Earl added a comment -

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

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: