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

cannot open job-config page in IE8 when using groovy-postbuild plugin

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • Master Server: Jenkins 1.410, CentOS 5.6, Groovy Postbuild 1.4
      Browser: Internet Explorer 8.0.7600.16385, Windows 7 Professional

    Description

      Groovy-postbuild plugin is a great work, thanks !
      However, the trouble below has occurred in our Jenkins since I wrote a experimental job using this plugin.

      When someone tries to open any job-config page of any job in IE8, IE8 raises a javascript error as follows:

      No Object, Line: 812, Character: 29, Code: 0
      URI: http://ourjenkins/ourPrefix/static/4b0b67f3/scripts/hudson-behavior.js
      
         "TR.row-set-end": function(e) { // see rowSet.jelly and optionalBlock.jelly
              // figure out the corresponding start block
              var end = e;
      
              for( var depth=0; ; e=e.previousSibling) { ## here ##
      

      Sorry if I'm wrong and if it's a FAQ, but

      • When disabled this plugin, we can open job config page in IE8
      • Other Jenkins without this plugin works well in IE8
      • No trouble at least when using Firefox and Chrome browsers

      So I suppose this plugins affects some outputs (ex. javascript and/or html) to browsers, and IE8 is sensitive? to them.

      Attachments

        Activity

          yamabb Yama Tksh created issue -
          yamabb Yama Tksh made changes -
          Field Original Value New Value
          Description Groovy-postbuild plugin is a great work, thanks \!
          However, the trouble below has occurred in our Jenkins since I wrote a experimental job using this plugin.

          When someone tries to open any *job-config page* of any job in *IE8*, IE8 raises a javascript error as follows:
          {noformat}
          No Object, Line: 812, Character: 29, Code: 0
          URI: http://ourjenkins/ourPrefix/static/4b0b67f3/scripts/hudson-behavior.js

             "TR.row-set-end": function(e) { // see rowSet.jelly and optionalBlock.jelly
                  // figure out the corresponding start block
                  var end = e;

                  for( var depth=0; ; e=e.previousSibling) { ## here ##
          {noformat}

          Sorry if I'm wrong and it's a FAQ, but
          * When disabled this plugin, IE8 works well
          * Other Jenkins without this plugin works well in IE8
          * No trouble at least when using Firefox and Chrome browsers

          So I suppose this plugins affects some outputs (ex. javascript and/or html) to browsers, and IE8 is sensitive? to them.
          Groovy-postbuild plugin is a great work, thanks \!
          However, the trouble below has occurred in our Jenkins since I wrote a experimental job using this plugin.

          When someone tries to open any *job-config page* of any job in *IE8*, IE8 raises a javascript error as follows:
          {noformat}
          No Object, Line: 812, Character: 29, Code: 0
          URI: http://ourjenkins/ourPrefix/static/4b0b67f3/scripts/hudson-behavior.js

             "TR.row-set-end": function(e) { // see rowSet.jelly and optionalBlock.jelly
                  // figure out the corresponding start block
                  var end = e;

                  for( var depth=0; ; e=e.previousSibling) { ## here ##
          {noformat}

          Sorry if I'm wrong and if it's a FAQ, but
          * When disabled this plugin, we can open job config page in IE8
          * Other Jenkins without this plugin works well in IE8
          * No trouble at least when using Firefox and Chrome browsers

          So I suppose this plugins affects some outputs (ex. javascript and/or html) to browsers, and IE8 is sensitive? to them.
          yamabb Yama Tksh added a comment -

          My trial groovy postbuild script is very simple and primitive one (I'm a newbie to groovy...):

          allItems = manager.hudson.items
          activeJobs = allItems.findAll{job -> job.isBuildable()}
          failedRuns = activeJobs.findAll{job -> job.lastBuild && job.lastBuild.result == hudson.model.Result.FAILURE}
          if (failedRuns.size() > 0)  {
            manager.addWarningBadge("Failed jobs !")
            summary = manager.createSummary("warning.gif")
            failedRuns.each{run -> summary.appendText(run.name, false)  }
          } else {
            manager.addInfoBadge("No failure")
            summary = manager.createSummary("blue.gif")
            summary.appendText("No failed jobs", false);
          }
          
          yamabb Yama Tksh added a comment - My trial groovy postbuild script is very simple and primitive one (I'm a newbie to groovy...): allItems = manager.hudson.items activeJobs = allItems.findAll{job -> job.isBuildable()} failedRuns = activeJobs.findAll{job -> job.lastBuild && job.lastBuild.result == hudson.model.Result.FAILURE} if (failedRuns.size() > 0) { manager.addWarningBadge( "Failed jobs !" ) summary = manager.createSummary( "warning.gif" ) failedRuns.each{run -> summary.appendText(run.name, false ) } } else { manager.addInfoBadge( "No failure" ) summary = manager.createSummary( "blue.gif" ) summary.appendText( "No failed jobs" , false ); }
          yamabb Yama Tksh added a comment -

          Very similar problem: http://issues.hudson-ci.org/browse/HUDSON-8120

          • CopyArtifact Plugin in this case ?
          yamabb Yama Tksh added a comment - Very similar problem: http://issues.hudson-ci.org/browse/HUDSON-8120 CopyArtifact Plugin in this case ?
          wolfs Stefan Wolf made changes -
          Assignee Serban Iordache [ beryx ] wolfs [ wolfs ]
          wolfs Stefan Wolf added a comment -

          I just made the release 1.5 of the groovy-postbuild-plugin. Could you please check if this issue is fixed?

          wolfs Stefan Wolf added a comment - I just made the release 1.5 of the groovy-postbuild-plugin. Could you please check if this issue is fixed?
          wolfs Stefan Wolf made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          leovonklenze leovonklenze added a comment -

          It works now. Thank you!

          leovonklenze leovonklenze added a comment - It works now. Thank you!
          yamabb Yama Tksh added a comment -

          It works for me too! Thanks!

          yamabb Yama Tksh added a comment - It works for me too! Thanks!
          wolfs Stefan Wolf added a comment -

          Fixed in Version 1.5

          wolfs Stefan Wolf added a comment - Fixed in Version 1.5
          wolfs Stefan Wolf made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          wolfs Stefan Wolf made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 140267 ] JNJira + In-Review [ 205196 ]

          People

            wolfs Stefan Wolf
            yamabb Yama Tksh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: