This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

    The

    post {
       always {
         dir("build") {
           script {
             def gccIssues = scanForIssues tool: gcc4(name: 'GCC')
             def action = publishIssues issues: [ gccIssues ], filters: [ excludeFile(".*[/\\\\]src[/\\\\]external.*") ]
             def result = action.getResult()
             def newSize = result.getNewSize()
             echo newSize
             echo result.getNewIssues()
          }   
        }
      }
    }
    

    fails with

    org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method io.jenkins.plugins.analysis.core.model.ResultAction getResult
    at org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhitelist.rejectMethod(StaticWhitelist.java:262)
    

    I also reported this in gitter on 20.05.2019 and was asked to create this bug report here.

          Assignee:
          Ulli Hafner
          Reporter:
          Tobias Müller
          Archiver:
          Jenkins Service Account

            Created:
            Updated:
            Resolved:
            Archived: