-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: warnings-ng-plugin
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.