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

Jenkins Email Extension plugin not working properly after latest Jenkins update 2.277.3 LTS

    • 2.14

      Email Extension plugin failing to send emails with the content of Jenkins environment variables after the Jenkins update from 2.263.3 LTS to 2.277.3. Following how my configuration looks like
       

      Editable email configuration project level(picture attached):

      Project Reply-To List: $DEFAULT_REPLYTO

      Content Type: HTML

      Default Subject: $DEFAULT_SUBJECT which is $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!

      Default Content : ${SCRIPT, template="email-template.groovy"}

       

      After successful build I am getting email like below (picture attached).

      I am not sure why I am getting email with variable names but not with its content.It was working perfectly before Jenkins upgrade. Any help appreciated.

          [JENKINS-65465] Jenkins Email Extension plugin not working properly after latest Jenkins update 2.277.3 LTS

          Nithin created issue -

          MiFoe added a comment - - edited

          As workaround for a pipeline the subject can be set to:

          "${currentBuild.fullDisplayName.replaceAll('\\s+#\\d+$', '')} - Build # ${env.BUILD_NUMBER} - ${currentBuild.result}!"

          MiFoe added a comment - - edited As workaround for a pipeline the subject can be set to: "${currentBuild.fullDisplayName.replaceAll( '\\s+#\\d+$' , '')} - Build # ${env.BUILD_NUMBER} - ${currentBuild.result}!"

          Nithin added a comment - - edited

          Hi, thank you but I am not using pipeline. Body of my email-ext plugin calling groovy script.

          Nithin added a comment - - edited Hi, thank you but I am not using pipeline. Body of my email-ext plugin calling groovy script.

          Nithin added a comment -

          Why plugin not displaying environment variables value? why it is considering as a string?

          Nithin added a comment - Why plugin not displaying environment variables value? why it is considering as a string?
          Panisara made changes -
          Comment [ It happened to me as well.  ]

          MiFoe added a comment -

          Only BULD_NUMBER is an environment variable, the others aren't.

          MiFoe added a comment - Only BULD_NUMBER is an environment variable, the others aren't.

          Nithin added a comment -

          Resolved after updating plugins 

          Nithin added a comment - Resolved after updating plugins 
          Nithin made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Nithin made changes -
          Comment [ Issue resolved after updating all plugins. ]

          Panisara added a comment - - edited

          what version do you use after updated?

          Panisara added a comment - - edited what version do you use after updated?

            Unassigned Unassigned
            nithink Nithin
            Votes:
            7 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: