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

Gradle Plugin cause dead loop with using ant plugin

    Details

    • Similar Issues:

      Description

      gradle plugins would cause dead loop with using ant and gradle build when viewing the console output.

      the gradle plugins when loading the outline , its use 

      document.getElementById("console-outline-body")

      and it has the same id with ant。 

      outline = document.getElementById("console-outline-body")
      .getElementsByTagName('ul')[0];

      when I use ant first ,ant genreate the outline, but it doesnt has a ul tag.

      so the outline is always undefined,and cause a dead loop;

       

      the source code of the grade plugins 

      gradle-plugin/[src|https://github.com/jenkinsci/gradle-plugin/tree/master/src]/[main|https://github.com/jenkinsci/gradle-plugin/tree/master/src/main]/[resources|https://github.com/jenkinsci/gradle-plugin/tree/master/src/main/resources]/[hudson|https://github.com/jenkinsci/gradle-plugin/tree/master/src/main/resources/hudson]/[plugins|https://github.com/jenkinsci/gradle-plugin/tree/master/src/main/resources/hudson/plugins]/[gradle|https://github.com/jenkinsci/gradle-plugin/tree/master/src/main/resources/hudson/plugins/gradle]/GradleTaskNote/script.js

      if (!loading) { loading = true; var u = new Ajax.Updater(document.getElementById("side-panel"), rootURL + "/descriptor/hudson.plugins.gradle.GradleTaskNote/outline", {insertion: Insertion.Bottom, onComplete: function() { if (!u.success()) return; // we can't us onSuccess because that kicks in before onComplete outline = document.getElementById("console-outline-body") .getElementsByTagName('ul')[0]; loading = false; queue.each(handle); }}); }
      

       

       

        Attachments

          Activity

          kyle_ou kyle ou created issue -
          kyle_ou kyle ou made changes -
          Field Original Value New Value
          Description gradle plugins would cause dead loop with using ant and gradle build when viewing the console output.

          the gradle plugins when loading the outline , its use 
          {code:java}
          document.getElementById("console-outline-body"){code}
          and it has the same id with ant。 
          {code:java}
          outline = document.getElementById("console-outline-body")
          .getElementsByTagName('ul')[0];{code}
          when I use ant first ,ant genreate the outline, but it doesnt has a ul tag.

          so the outline is always undefined,and cause a dead loop;

           
          {code:java}
          if (!loading) { loading = true; var u = new Ajax.Updater(document.getElementById("side-panel"), rootURL + "/descriptor/hudson.plugins.gradle.GradleTaskNote/outline", {insertion: Insertion.Bottom, onComplete: function() { if (!u.success()) return; // we can't us onSuccess because that kicks in before onComplete outline = document.getElementById("console-outline-body") .getElementsByTagName('ul')[0]; loading = false; queue.each(handle); }}); }
          {code}
           

           
          gradle plugins would cause dead loop with using ant and gradle build when viewing the console output.

          the gradle plugins when loading the outline , its use 
          {code:java}
          document.getElementById("console-outline-body"){code}
          and it has the same id with ant。 
          {code:java}
          outline = document.getElementById("console-outline-body")
          .getElementsByTagName('ul')[0];{code}
          when I use ant first ,ant genreate the outline, but it doesnt has a ul tag.

          so the outline is always undefined,and cause a dead loop;

           

          {{the source code of the grade plugins }}

          {{{color:#333333}^~[gradle-plugin|https://github.com/jenkinsci/gradle-plugin]/[src|https://github.com/jenkinsci/gradle-plugin/tree/master/src]/[main|https://github.com/jenkinsci/gradle-plugin/tree/master/src/main]/[resources|https://github.com/jenkinsci/gradle-plugin/tree/master/src/main/resources]/[hudson|https://github.com/jenkinsci/gradle-plugin/tree/master/src/main/resources/hudson]/[plugins|https://github.com/jenkinsci/gradle-plugin/tree/master/src/main/resources/hudson/plugins]/[gradle|https://github.com/jenkinsci/gradle-plugin/tree/master/src/main/resources/hudson/plugins/gradle]/*GradleTaskNote*/script.js~^{color}}}
          {code:java}
          if (!loading) { loading = true; var u = new Ajax.Updater(document.getElementById("side-panel"), rootURL + "/descriptor/hudson.plugins.gradle.GradleTaskNote/outline", {insertion: Insertion.Bottom, onComplete: function() { if (!u.success()) return; // we can't us onSuccess because that kicks in before onComplete outline = document.getElementById("console-outline-body") .getElementsByTagName('ul')[0]; loading = false; queue.each(handle); }}); }
          {code}
           

           
          webwart H. Feldker made changes -
          Attachment jenkins_error.png [ 39856 ]
          scm_issue_link SCM/JIRA link daemon made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          webwart H. Feldker made changes -
          Attachment jenkins_ant_layout.png [ 39891 ]
          wolfs Stefan Wolf made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              wolfs Stefan Wolf
              Reporter:
              kyle_ou kyle ou
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: