Scripts not permitted to use a method already approve in In-process Script Approval GUI

175 views
Skip to first unread message

Romaric Crailox

unread,
Apr 24, 2017, 5:47:33 AM4/24/17
to Jenkins Users
Hello all,

I have this error during execution of a Jenkins job with "Scan for compiler warnings" in "post build action" (two parsers are use : parser1 and parser2)  :

[WARNINGS] Parsing warnings in files 'output1' with parser parser1
[WARNINGS] Groovy sandbox rejected the parsing script for parser parser1: Scripts not permitted to use method java.util.regex.MatchResult group int. You will need to manually approve the call in the Script Approval UI.
[WARNINGS] Parsing warnings in files 'output2' with parser parser2
[WARNINGS] Groovy sandbox rejected the parsing script for parser parser2: Scripts not permitted to use method java.util.regex.MatchResult group int. You will need to manually approve the call in the Script Approval UI.

Problem, java.util.regex.MatchResult method already approve in "In-process Script Approval" Windows (in Manage Jenkins) : see script_aproval.png file.
In "Manage Jenkins" > "Configure System" > "Compiler Warnings" > "Parsers" there is no error message below parser1 and parser2... (I think about error message like "An exception occurred during evaluation of the Groovy script: Scripts not permitted to use method hudson.plugins.analysis.util.model.FileAnnotation setModuleName java.lang.String").

Can you help me to understand what thing I have missed to make please ?

Best regards

Romaric Crailox
script_aproval.png
Message has been deleted

Lucas Brendel

unread,
Apr 25, 2017, 10:57:48 PM4/25/17
to Jenkins Users
I have been running in to this exact same issue, in fact i just posted here about it also. Do you know when it started for you? I can't tell if my update of Jenkins to 2.46 caused it or if it was due to an update to Script Security, which was February, and i just wasn't paying attention. 

Romaric Crailox

unread,
Apr 26, 2017, 11:11:45 AM4/26/17
to Jenkins Users
I'm pretty sure that it started less than one month.
I am on Jenkins 2.55.

Furthermore I have Permissive Script Security Plugin installed.


Le mercredi 26 avril 2017 04:57:48 UTC+2, Lucas Brendel a écrit :

Romaric Crailox

unread,
Apr 27, 2017, 5:18:14 AM4/27/17
to Jenkins Users
For information, I open a ticket here.

Best regards
Romaric Crailox
Reply all
Reply to author
Forward
0 new messages