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

[robot] Extract inline script blocks and event handlers in hudson/plugins/robot/model/RobotResult/index.jelly

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Minor Minor
    • robot-plugin

      Problems

      == Inline Script Block
      Line: 68
      ----
      <script>initPassFailGraph('');</script>
      ----
      
      == Inline Script Block
      Line: 76
      ----
      <script>initDurationGraph('');</script>
      ----
      
      == Inline Event Handler
      Line: 61
      ----
      <input type="checkbox" id="zoomToChanges" onclick="redrawPassFailGraph('');"/>
      ----
      
      == Inline Event Handler
      Line: 62
      ----
      <input type="checkbox" id="failedOnly" onclick="redrawPassFailGraph('');"/>
      ----
      
      == Inline Event Handler
      Line: 63
      ----
      <input type="checkbox" id="criticalOnly" onclick="redrawPassFailGraph('');"/>
      ----
      
      == Inline Event Handler
      Line: 64
      ----
      <input min="0" max="9999" step="1" placeholder="all" value="" type="number" id="maxBuildsToShow"
                               onchange="redrawPassFailGraph(''); redrawDurationGraph('');"/>
      ----
      
      == Inline Script Block
      Line: 68
      ----
      <script>initPassFailGraph('');</script>
      ----
      
      == Inline Script Block
      Line: 76
      ----
      <script>initDurationGraph('');</script>
      ----
      
      == Inline Event Handler
      Line: 61
      ----
      <input type="checkbox" id="zoomToChanges" onclick="redrawPassFailGraph('');"/>
      ----
      
      == Inline Event Handler
      Line: 62
      ----
      <input type="checkbox" id="failedOnly" onclick="redrawPassFailGraph('');"/>
      ----
      
      == Inline Event Handler
      Line: 63
      ----
      <input type="checkbox" id="criticalOnly" onclick="redrawPassFailGraph('');"/>
      ----
      
      == Inline Event Handler
      Line: 64
      ----
      <input min="0" max="9999" step="1" placeholder="all" value="" type="number" id="maxBuildsToShow"
                               onchange="redrawPassFailGraph(''); redrawDurationGraph('');"/>
      ----
      

      Solutions

      https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks
      https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers

            Unassigned Unassigned
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: