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

Javascript error when selecting "Editable Email Notification"

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • email-ext-plugin
    • Windows, IE8, Jenkins 1.463, Jenkins Email Extension Plugin 2.20

      In Jenkins ver. 1.463, when selecting "Editable Email Notification" in the "Add post-build action", getting the following Javascript error

      Message: 'emailExtInit' is undefined
      Line: 480
      Char: 17
      Code: 0
      URI: http://myserver:8080/static/f11a6618/scripts/hudson-behavior.js

          [JENKINS-13737] Javascript error when selecting "Editable Email Notification"

          Code changed in jenkins
          User: slide
          Path:
          src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.jelly
          http://jenkins-ci.org/commit/email-ext-plugin/ee715fbd1bd81e83cb9501c311fd04f309431a2c
          Log:
          FIX JENKINS-13737

          • Workaround issue with eval'd jscript code by making the variable window level (global)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: slide Path: src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.jelly http://jenkins-ci.org/commit/email-ext-plugin/ee715fbd1bd81e83cb9501c311fd04f309431a2c Log: FIX JENKINS-13737 Workaround issue with eval'd jscript code by making the variable window level (global)

          Leo Dolan added a comment - - edited

          I have made the changes locally as specified in the link above (deleted three lines and added three lines), and validated that it does work now for me.

          Note, the path to the file on my system (OEL5.5) was:

          /var/lib/jenkins/plugins/email-ext/WEB-INF/classes/hudson/plugins/emailext/ExtendedEmailPublisher/config.jelly

          Leo Dolan added a comment - - edited I have made the changes locally as specified in the link above (deleted three lines and added three lines), and validated that it does work now for me. Note, the path to the file on my system (OEL5.5) was: /var/lib/jenkins/plugins/email-ext/WEB-INF/classes/hudson/plugins/emailext/ExtendedEmailPublisher/config.jelly

          Alex Earl added a comment -

          Put in place a workaround to have the custom JS object made a global.

          Alex Earl added a comment - Put in place a workaround to have the custom JS object made a global.

          amit anand added a comment -

          I am facing same problem with Jenkins ver. 1.463 and Jenkins ver. 1.464 with Chrome browser19.0.1084.46 m

          Work around is also not working

          amit anand added a comment - I am facing same problem with Jenkins ver. 1.463 and Jenkins ver. 1.464 with Chrome browser19.0.1084.46 m Work around is also not working

          Alex Earl added a comment -

          Then try installing 2.21. It works for me on those versions.

          Alex Earl added a comment - Then try installing 2.21. It works for me on those versions.

          Thanks, 2.21 works for me!

          Kelly Schoenhofen added a comment - Thanks, 2.21 works for me!

          Alex Earl added a comment -

          Verified as working in 2.21

          Alex Earl added a comment - Verified as working in 2.21

          Hi,

          Jenkins automatic updates doesn't detect version 2.21. Do I have to manually install the version 2.21 of the plugin?

          Regards,

          Juanma

          Juan Manuel Barroso added a comment - Hi, Jenkins automatic updates doesn't detect version 2.21. Do I have to manually install the version 2.21 of the plugin? Regards, Juanma

          Alex Earl added a comment -

          What version of core are you using? 2.21 was upgraded to depend on the latest LTS release.

          Alex Earl added a comment - What version of core are you using? 2.21 was upgraded to depend on the latest LTS release.

          The problem is solved, it appears that Jenkins only needed time to detect the update. Thanks

          Juan Manuel Barroso added a comment - The problem is solved, it appears that Jenkins only needed time to detect the update. Thanks

            slide_o_mix Alex Earl
            javaneo Noel Bernardez
            Votes:
            7 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: