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

[pipeline-aggregator-view] Extract inline script blocks in com/ooyala/jenkins/plugins/pipelineaggregatorview/PipelineAggregator/index.jelly

    • 119.v4b_ec11953552

      Note

      While testing this plugin, evaluate whether the third-party libraries in src/main/webapp/lib are compatible with CSP in restrictive mode. The plugin may need to be upgraded from jQuery 1.x to 3.x to fully function in CSP restrictive mode.

      Problems

      == Inline Script Block
      Line: 24
      ----
      <script type="text/javascript">
                      var url = window.location.href
                      var refreshInterval = ${it.refreshInterval}
                      var buildHistorySize = ${it.buildHistorySize};
                      var useScrollingCommits= ${it.useScrollingCommits};
                      var onlyLastBuild= ${it.onlyLastBuild};
                      var showCommitInfo = ${it.showCommitInfo};
                      var showBuildNumber = ${it.showBuildNumber};
                      var showBuildTime = ${it.showBuildTime};
                      var showBuildDuration = ${it.showBuildDuration};
                      function reload_info (interval) {
                          reload_jenkins_build_history('#jenkinsBuildHistory', url, buildHistorySize, useScrollingCommits, onlyLastBuild, showCommitInfo, showBuildNumber, showBuildTime, showBuildDuration);
                          setTimeout(function(){ reload_info(interval); }, interval);
                      }
                  </script>
      ----
      
      == Inline Script Block
      Line: 54
      ----
      <script type="text/javascript">
                                          if(showCommitInfo) {
                                              document.write("<th>${%Commits}</th>");
                                          }
                                          if(showCommitInfo) {
                                              document.write("<th>${%Build}</th>");
                                          }
                                          if(showBuildTime) {
                                              document.write("<th>${%Finished}</th>");
                                          }
                                          if(showBuildDuration) {
                                              document.write("<th>${%Duration}</th>");
                                          }
                                      </script>
      ----
      
      == Inline Script Block
      Line: 78
      ----
      <script type="text/javascript">
                      var $$ = jQuery;
                      $$(document).ready(function(){
                          $$.ajaxSetup({ cache: false });
                          reload_info(refreshInterval);
                      });
                  </script>
      ----
      

      Solution

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

          [JENKINS-74122] [pipeline-aggregator-view] Extract inline script blocks in com/ooyala/jenkins/plugins/pipelineaggregatorview/PipelineAggregator/index.jelly

          Basil Crow created issue -
          Basil Crow made changes -
          Assignee Original: Paul Horvath [ paul8620 ]
          Basil Crow made changes -
          Description Original: h4. Problems

          {noformat}
          == Inline Script Block
          Line: 24
          ----
          <script type="text/javascript">
                          var url = window.location.href
                          var refreshInterval = ${it.refreshInterval}
                          var buildHistorySize = ${it.buildHistorySize};
                          var useScrollingCommits= ${it.useScrollingCommits};
                          var onlyLastBuild= ${it.onlyLastBuild};
                          var showCommitInfo = ${it.showCommitInfo};
                          var showBuildNumber = ${it.showBuildNumber};
                          var showBuildTime = ${it.showBuildTime};
                          var showBuildDuration = ${it.showBuildDuration};
                          function reload_info (interval) {
                              reload_jenkins_build_history('#jenkinsBuildHistory', url, buildHistorySize, useScrollingCommits, onlyLastBuild, showCommitInfo, showBuildNumber, showBuildTime, showBuildDuration);
                              setTimeout(function(){ reload_info(interval); }, interval);
                          }
                      </script>
          ----

          == Inline Script Block
          Line: 54
          ----
          <script type="text/javascript">
                                              if(showCommitInfo) {
                                                  document.write("<th>${%Commits}</th>");
                                              }
                                              if(showCommitInfo) {
                                                  document.write("<th>${%Build}</th>");
                                              }
                                              if(showBuildTime) {
                                                  document.write("<th>${%Finished}</th>");
                                              }
                                              if(showBuildDuration) {
                                                  document.write("<th>${%Duration}</th>");
                                              }
                                          </script>
          ----

          == Inline Script Block
          Line: 78
          ----
          <script type="text/javascript">
                          var $$ = jQuery;
                          $$(document).ready(function(){
                              $$.ajaxSetup({ cache: false });
                              reload_info(refreshInterval);
                          });
                      </script>
          ----

          == Inline Script Block
          Line: 24
          ----
          <script type="text/javascript">
                          var url = window.location.href
                          var refreshInterval = ${it.refreshInterval}
                          var buildHistorySize = ${it.buildHistorySize};
                          var useScrollingCommits= ${it.useScrollingCommits};
                          var onlyLastBuild= ${it.onlyLastBuild};
                          var showCommitInfo = ${it.showCommitInfo};
                          var showBuildNumber = ${it.showBuildNumber};
                          var showBuildTime = ${it.showBuildTime};
                          var showBuildDuration = ${it.showBuildDuration};
                          function reload_info (interval) {
                              reload_jenkins_build_history('#jenkinsBuildHistory', url, buildHistorySize, useScrollingCommits, onlyLastBuild, showCommitInfo, showBuildNumber, showBuildTime, showBuildDuration);
                              setTimeout(function(){ reload_info(interval); }, interval);
                          }
                      </script>
          ----

          == Inline Script Block
          Line: 54
          ----
          <script type="text/javascript">
                                              if(showCommitInfo) {
                                                  document.write("<th>${%Commits}</th>");
                                              }
                                              if(showCommitInfo) {
                                                  document.write("<th>${%Build}</th>");
                                              }
                                              if(showBuildTime) {
                                                  document.write("<th>${%Finished}</th>");
                                              }
                                              if(showBuildDuration) {
                                                  document.write("<th>${%Duration}</th>");
                                              }
                                          </script>
          ----

          == Inline Script Block
          Line: 78
          ----
          <script type="text/javascript">
                          var $$ = jQuery;
                          $$(document).ready(function(){
                              $$.ajaxSetup({ cache: false });
                              reload_info(refreshInterval);
                          });
                      </script>
          ----
          {noformat}

          h4. Solution

          [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks]
          New: h4. Problems

          {noformat}
          == Inline Script Block
          Line: 24
          ----
          <script type="text/javascript">
                          var url = window.location.href
                          var refreshInterval = ${it.refreshInterval}
                          var buildHistorySize = ${it.buildHistorySize};
                          var useScrollingCommits= ${it.useScrollingCommits};
                          var onlyLastBuild= ${it.onlyLastBuild};
                          var showCommitInfo = ${it.showCommitInfo};
                          var showBuildNumber = ${it.showBuildNumber};
                          var showBuildTime = ${it.showBuildTime};
                          var showBuildDuration = ${it.showBuildDuration};
                          function reload_info (interval) {
                              reload_jenkins_build_history('#jenkinsBuildHistory', url, buildHistorySize, useScrollingCommits, onlyLastBuild, showCommitInfo, showBuildNumber, showBuildTime, showBuildDuration);
                              setTimeout(function(){ reload_info(interval); }, interval);
                          }
                      </script>
          ----

          == Inline Script Block
          Line: 54
          ----
          <script type="text/javascript">
                                              if(showCommitInfo) {
                                                  document.write("<th>${%Commits}</th>");
                                              }
                                              if(showCommitInfo) {
                                                  document.write("<th>${%Build}</th>");
                                              }
                                              if(showBuildTime) {
                                                  document.write("<th>${%Finished}</th>");
                                              }
                                              if(showBuildDuration) {
                                                  document.write("<th>${%Duration}</th>");
                                              }
                                          </script>
          ----

          == Inline Script Block
          Line: 78
          ----
          <script type="text/javascript">
                          var $$ = jQuery;
                          $$(document).ready(function(){
                              $$.ajaxSetup({ cache: false });
                              reload_info(refreshInterval);
                          });
                      </script>
          ----
          {noformat}

          h4. Solution

          [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks]
          Basil Crow made changes -
          Description Original: h4. Problems

          {noformat}
          == Inline Script Block
          Line: 24
          ----
          <script type="text/javascript">
                          var url = window.location.href
                          var refreshInterval = ${it.refreshInterval}
                          var buildHistorySize = ${it.buildHistorySize};
                          var useScrollingCommits= ${it.useScrollingCommits};
                          var onlyLastBuild= ${it.onlyLastBuild};
                          var showCommitInfo = ${it.showCommitInfo};
                          var showBuildNumber = ${it.showBuildNumber};
                          var showBuildTime = ${it.showBuildTime};
                          var showBuildDuration = ${it.showBuildDuration};
                          function reload_info (interval) {
                              reload_jenkins_build_history('#jenkinsBuildHistory', url, buildHistorySize, useScrollingCommits, onlyLastBuild, showCommitInfo, showBuildNumber, showBuildTime, showBuildDuration);
                              setTimeout(function(){ reload_info(interval); }, interval);
                          }
                      </script>
          ----

          == Inline Script Block
          Line: 54
          ----
          <script type="text/javascript">
                                              if(showCommitInfo) {
                                                  document.write("<th>${%Commits}</th>");
                                              }
                                              if(showCommitInfo) {
                                                  document.write("<th>${%Build}</th>");
                                              }
                                              if(showBuildTime) {
                                                  document.write("<th>${%Finished}</th>");
                                              }
                                              if(showBuildDuration) {
                                                  document.write("<th>${%Duration}</th>");
                                              }
                                          </script>
          ----

          == Inline Script Block
          Line: 78
          ----
          <script type="text/javascript">
                          var $$ = jQuery;
                          $$(document).ready(function(){
                              $$.ajaxSetup({ cache: false });
                              reload_info(refreshInterval);
                          });
                      </script>
          ----
          {noformat}

          h4. Solution

          [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks]
          New: h1. Note

          *While testing this plugin, evaluate whether the third-party libraries in {{src/main/webapp/js}} are compatible with CSP in restrictive mode. The plugin may need to be upgraded from jQuery 1.x to 3.x to fully function in CSP restrictive mode.*

          h4. Problems

          {noformat}
          == Inline Script Block
          Line: 24
          ----
          <script type="text/javascript">
                          var url = window.location.href
                          var refreshInterval = ${it.refreshInterval}
                          var buildHistorySize = ${it.buildHistorySize};
                          var useScrollingCommits= ${it.useScrollingCommits};
                          var onlyLastBuild= ${it.onlyLastBuild};
                          var showCommitInfo = ${it.showCommitInfo};
                          var showBuildNumber = ${it.showBuildNumber};
                          var showBuildTime = ${it.showBuildTime};
                          var showBuildDuration = ${it.showBuildDuration};
                          function reload_info (interval) {
                              reload_jenkins_build_history('#jenkinsBuildHistory', url, buildHistorySize, useScrollingCommits, onlyLastBuild, showCommitInfo, showBuildNumber, showBuildTime, showBuildDuration);
                              setTimeout(function(){ reload_info(interval); }, interval);
                          }
                      </script>
          ----

          == Inline Script Block
          Line: 54
          ----
          <script type="text/javascript">
                                              if(showCommitInfo) {
                                                  document.write("<th>${%Commits}</th>");
                                              }
                                              if(showCommitInfo) {
                                                  document.write("<th>${%Build}</th>");
                                              }
                                              if(showBuildTime) {
                                                  document.write("<th>${%Finished}</th>");
                                              }
                                              if(showBuildDuration) {
                                                  document.write("<th>${%Duration}</th>");
                                              }
                                          </script>
          ----

          == Inline Script Block
          Line: 78
          ----
          <script type="text/javascript">
                          var $$ = jQuery;
                          $$(document).ready(function(){
                              $$.ajaxSetup({ cache: false });
                              reload_info(refreshInterval);
                          });
                      </script>
          ----
          {noformat}

          h4. Solution

          [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks]
          Basil Crow made changes -
          Description Original: h1. Note

          *While testing this plugin, evaluate whether the third-party libraries in {{src/main/webapp/js}} are compatible with CSP in restrictive mode. The plugin may need to be upgraded from jQuery 1.x to 3.x to fully function in CSP restrictive mode.*

          h4. Problems

          {noformat}
          == Inline Script Block
          Line: 24
          ----
          <script type="text/javascript">
                          var url = window.location.href
                          var refreshInterval = ${it.refreshInterval}
                          var buildHistorySize = ${it.buildHistorySize};
                          var useScrollingCommits= ${it.useScrollingCommits};
                          var onlyLastBuild= ${it.onlyLastBuild};
                          var showCommitInfo = ${it.showCommitInfo};
                          var showBuildNumber = ${it.showBuildNumber};
                          var showBuildTime = ${it.showBuildTime};
                          var showBuildDuration = ${it.showBuildDuration};
                          function reload_info (interval) {
                              reload_jenkins_build_history('#jenkinsBuildHistory', url, buildHistorySize, useScrollingCommits, onlyLastBuild, showCommitInfo, showBuildNumber, showBuildTime, showBuildDuration);
                              setTimeout(function(){ reload_info(interval); }, interval);
                          }
                      </script>
          ----

          == Inline Script Block
          Line: 54
          ----
          <script type="text/javascript">
                                              if(showCommitInfo) {
                                                  document.write("<th>${%Commits}</th>");
                                              }
                                              if(showCommitInfo) {
                                                  document.write("<th>${%Build}</th>");
                                              }
                                              if(showBuildTime) {
                                                  document.write("<th>${%Finished}</th>");
                                              }
                                              if(showBuildDuration) {
                                                  document.write("<th>${%Duration}</th>");
                                              }
                                          </script>
          ----

          == Inline Script Block
          Line: 78
          ----
          <script type="text/javascript">
                          var $$ = jQuery;
                          $$(document).ready(function(){
                              $$.ajaxSetup({ cache: false });
                              reload_info(refreshInterval);
                          });
                      </script>
          ----
          {noformat}

          h4. Solution

          [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks]
          New: h1. Note

          *While testing this plugin, evaluate whether the third-party libraries in {{src/main/webapp/lib}} are compatible with CSP in restrictive mode. The plugin may need to be upgraded from jQuery 1.x to 3.x to fully function in CSP restrictive mode.*

          h4. Problems

          {noformat}
          == Inline Script Block
          Line: 24
          ----
          <script type="text/javascript">
                          var url = window.location.href
                          var refreshInterval = ${it.refreshInterval}
                          var buildHistorySize = ${it.buildHistorySize};
                          var useScrollingCommits= ${it.useScrollingCommits};
                          var onlyLastBuild= ${it.onlyLastBuild};
                          var showCommitInfo = ${it.showCommitInfo};
                          var showBuildNumber = ${it.showBuildNumber};
                          var showBuildTime = ${it.showBuildTime};
                          var showBuildDuration = ${it.showBuildDuration};
                          function reload_info (interval) {
                              reload_jenkins_build_history('#jenkinsBuildHistory', url, buildHistorySize, useScrollingCommits, onlyLastBuild, showCommitInfo, showBuildNumber, showBuildTime, showBuildDuration);
                              setTimeout(function(){ reload_info(interval); }, interval);
                          }
                      </script>
          ----

          == Inline Script Block
          Line: 54
          ----
          <script type="text/javascript">
                                              if(showCommitInfo) {
                                                  document.write("<th>${%Commits}</th>");
                                              }
                                              if(showCommitInfo) {
                                                  document.write("<th>${%Build}</th>");
                                              }
                                              if(showBuildTime) {
                                                  document.write("<th>${%Finished}</th>");
                                              }
                                              if(showBuildDuration) {
                                                  document.write("<th>${%Duration}</th>");
                                              }
                                          </script>
          ----

          == Inline Script Block
          Line: 78
          ----
          <script type="text/javascript">
                          var $$ = jQuery;
                          $$(document).ready(function(){
                              $$.ajaxSetup({ cache: false });
                              reload_info(refreshInterval);
                          });
                      </script>
          ----
          {noformat}

          h4. Solution

          [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks]
          Yaroslav Afenkin made changes -
          Assignee New: Yaroslav Afenkin [ yafenkin ]
          Yaroslav Afenkin made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Yaroslav Afenkin made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Yaroslav Afenkin made changes -
          Remote Link New: This issue links to "jenkinsci/pipeline-aggregator-view-plugin/pull/30 (Web Link)" [ 30288 ]
          Basil Crow made changes -
          Released As New: 119.v4b_ec11953552
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Closed [ 6 ]

            yafenkin Yaroslav Afenkin
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: