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

[selected-tests-executor] Extract inline script block and event handlers in WEB-INF/classes/il/ac/technion/jenkins/plugins/TestExecuter/index.jelly

XMLWordPrintable

      Problems

      == Inline Script Block
      Line: 77
      ----
      <script type="text/javascript">
      		var TestExecuterRPC = <st:bind value="${it}"/>;
      		loadTreeFromFile("${it.propertiesFilePath}",
      				"selectedTests_${it.uuid}",
      				"testsTreeContainer_${it.uuid}",
      				${it.getAsJson()});
      	</script>
      ----
      
      == Inline Event Handler
      Line: 65
      ----
      <input type="button" value="Select All" onclick="selectGroupInDiv('testsTreeContainer_${it.uuid}', true);"/>
      ----
      
      == Inline Event Handler
      Line: 66
      ----
      <input type="button" value="Unselect All" onclick="selectGroupInDiv('testsTreeContainer_${it.uuid}', false);"/>
      ----
      

      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: