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

[electricflow] Extract inline script block and event handler in org/jenkinsci/plugins/electricflow/ElectricFlowAssociateBuildToRelease/config.jelly

XMLWordPrintable

      Problems

      == Inline Script Block
      Line: 66
      ----
      <script>
              function updateReleaseJson() {
                  var procedureName = document.getElementById("ef_abtr_releaseName").value;
                  var json = JSON.parse('{"release":{"releaseName":"' + releaseName + '"}}');
              }
      
      
              function triggerExtraValidationForSetJenkinsBuildDetails() {
                  document.getElementById("ef_abtr_validationTrigger").click();
              }
          </script>
      ----
      
      == Inline Event Handler
      Line: 55
      ----
      <button type="button" onclick="triggerExtraValidationForSetJenkinsBuildDetails();">
      ----
      

      Solutions

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

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

              Created:
              Updated: