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

[artifactory] Extract inline script block and event handler in org/jfrog/hudson/release/promotion/UnifiedPromoteBuildAction/form.jelly

XMLWordPrintable

      Problems

      == Inline Script Block
      Line: 51
      ----
      <script>
                      var selectPlugin = document.getElementById("pluginList");
                      selectPlugin.onchange = onPluginChange;
                      var buildBind =<st:bind value="${it}"/>;
                      var promoteInfoListSize = "${it.PromoteInfoListSize}";
                      if (promoteInfoListSize >= 1) {
                      loadBuild('${it.buildsData}'); // Auto-load
                      }
                  </script>
      ----
      
      == Inline Event Handler
      Line: 21
      ----
      <select class="setting-input" name="promotionCandidates"
                                              id="buildId" onchange="loadBuild('${it.buildsData}')">
      ----
      

      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: