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

Whitelisted method to test whether matrix parent build

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Groovy-postbuild plugin introduces script-security.
      When groovy-postbuild is used in a matrix project and run both in parent builds and child build, it requires manager.build to test whether it is running on a parent build.
      It always requires administrators' script approval.

      I need a whitelisted method to test whether the current build is the parent or a child.

        Attachments

          Activity

          Show
          ikedam ikedam added a comment - https://github.com/jenkinsci/groovy-postbuild-plugin/pull/15
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/java/org/jvnet/hudson/plugins/groovypostbuild/GroovyPostbuildRecorder.java
          src/main/resources/org/jvnet/hudson/plugins/groovypostbuild/GroovyPostbuildRecorder/help-runForMatrixParent.html
          src/test/java/org/jvnet/hudson/plugins/groovypostbuild/GroovyPostbuildRecorderTest.java
          http://jenkins-ci.org/commit/groovy-postbuild-plugin/23412b45281d0409f754a00ab0b3d2023486a1a2
          Log:
          [FIXED JENKINS-24694] Added manager.buildIsA to test a type of build. mainly used for test whether the build is a matrix parent.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/org/jvnet/hudson/plugins/groovypostbuild/GroovyPostbuildRecorder.java src/main/resources/org/jvnet/hudson/plugins/groovypostbuild/GroovyPostbuildRecorder/help-runForMatrixParent.html src/test/java/org/jvnet/hudson/plugins/groovypostbuild/GroovyPostbuildRecorderTest.java http://jenkins-ci.org/commit/groovy-postbuild-plugin/23412b45281d0409f754a00ab0b3d2023486a1a2 Log: [FIXED JENKINS-24694] Added manager.buildIsA to test a type of build. mainly used for test whether the build is a matrix parent.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/java/org/jvnet/hudson/plugins/groovypostbuild/GroovyPostbuildRecorder.java
          src/main/resources/org/jvnet/hudson/plugins/groovypostbuild/GroovyPostbuildRecorder/help-runForMatrixParent.html
          src/test/java/org/jvnet/hudson/plugins/groovypostbuild/GroovyPostbuildRecorderTest.java
          http://jenkins-ci.org/commit/groovy-postbuild-plugin/f145cae857d26657426a4a540ad20b32748345a0
          Log:
          Merge pull request #15 from ikedam/feature/JENKINS-24694_matrixtestmethod

          JENKINS-24694 Whitelisted method to test whether a matrix parent build

          Compare: https://github.com/jenkinsci/groovy-postbuild-plugin/compare/00a39a3f1414...f145cae857d2

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/org/jvnet/hudson/plugins/groovypostbuild/GroovyPostbuildRecorder.java src/main/resources/org/jvnet/hudson/plugins/groovypostbuild/GroovyPostbuildRecorder/help-runForMatrixParent.html src/test/java/org/jvnet/hudson/plugins/groovypostbuild/GroovyPostbuildRecorderTest.java http://jenkins-ci.org/commit/groovy-postbuild-plugin/f145cae857d26657426a4a540ad20b32748345a0 Log: Merge pull request #15 from ikedam/feature/ JENKINS-24694 _matrixtestmethod JENKINS-24694 Whitelisted method to test whether a matrix parent build Compare: https://github.com/jenkinsci/groovy-postbuild-plugin/compare/00a39a3f1414...f145cae857d2

            People

            Assignee:
            ikedam ikedam
            Reporter:
            ikedam ikedam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: