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

[atlassian-jira-software-cloud] Extract inline event handlers and inline scripts from JiraCloudPluginConfig

XMLWordPrintable

      Problems

      src/main/resources/com/atlassian/jira/cloud/jenkins/config/JiraCloudPluginConfig/config.groovy
      3-def f = namespace(lib.FormTagLib);
      4-def c = namespace(lib.CredentialsTagLib)
      5-
      6:raw(
      7-"<script>" +
      8-    getClass().getResourceAsStream(
      9-            "/com/atlassian/jira/cloud/jenkins/config/JiraCloudPluginConfig/config.js"
      --
      105-                }
      106-            }
      107-
      108:            raw(
      109-                    "<script>atlWatchNotEmpty('atlDeploymentsRegex', 'atlTestDeploymentRegexBlankError', 'Pipeline step regex cannot be empty!');</script>"
      110-            )
      111-        }
      

      and

      src/main/resources/com/atlassian/jira/cloud/jenkins/config/JiraCloudPluginConfig/config.groovy
      55-            span(
      56-                    class: "yui-button",
      57:                    onClick: "return (new AtlassianRegexTester('atlBuildsRegex', 'atlTestBuildRegexError', 'atlTextBuildRegexSuccess'))" +
      58-                                ".test('Please enter the test name of your pipeline step/stage:', []);"
      59-            ) {
      60-                button(
      61:                        onClick: "return false;"
      62-                ) {
      63-                    text(_("Test Pipeline step regex"))
      --
      96-            span(
      97-                    class: "yui-button",
      98:                    onClick: "return (new AtlassianRegexTester('atlDeploymentsRegex', 'atlTestDeploymentRegexError', 'atlTextDeploymentRegexSuccess'))" +
      99-                            ".test('Please enter the test name of your pipeline step/stage:', ['envName']);"
      100-            ) {
      101-                button(
      102:                        onClick: "return false;"
      103-                ) {
      104-                    text(_("Test Pipeline step regex"))
      

      Solutions

      https://www.jenkins.io/doc/developer/security/csp/

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

              Created:
              Updated: