When accessed to hudson.model.Result.SUCCESS in groovy-postbuild-plugin, the job fails with:

      Scripts not permitted to use staticField hudson.model.Result SUCCESS
      

      groovy-postbuild-plugin should permit accesses to any public static members as I don't think there's a case that a public static member cause a security vulnerability.

          [JENKINS-25833] Allow access to static members

          Jesse Glick added a comment -

          Static fields, like instance fields, must be whitelisted before use. These cases would make sense to be covered by JENKINS-25804.

          Jesse Glick added a comment - Static fields, like instance fields, must be whitelisted before use. These cases would make sense to be covered by JENKINS-25804 .

            jglick Jesse Glick
            ikedam ikedam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: