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

Javascript not transferred, when using createSummary

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • badge-plugin
    • Jenkins: 2.121.2
      Badge Plugin: 1.5

      We have a post-build action groovy script that gets evaluated. It reads some files in the workspace, and creates a summary section on the build page. The summary can contain large tables (audit information), and therefore also contains an expand/collapse icon that can be clicked.

      We place some simple associated Javascript to handle the clicking.

      This works with version 1.4, but does not work with version 1.5

      Code:

      <script>
      function hideMe(toggle) {
          var e = document.getElementById(toggle);
          e.style.display = (e.style.display != 'none' ? 'none' : '');
      }
      </script>

       

      Notes:

      • the javascript code has not changed
      • we downgraded to 1.4 (post-ugprade), and it started working again
      • the html portion of the code is handled fine (the icon shows up, as does the audit table)
      • the scripts are all approved
      • we are passing false for the appendText option escapeHtml

       

            bakito Marc Brugger
            skhushalani Sagar Khushalani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: