Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.ScriptBytecodeAdapter compareLessThan java.lang.Object java.lang.Object

2,734 views
Skip to first unread message

Rinaldo DiGiorgio

unread,
Apr 15, 2015, 5:07:46 PM4/15/15
to jenkins...@googlegroups.com
Hi,

  I have configured workflow to use an anonymous git repository for the workflow script. I get the following error.

Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.ScriptBytecodeAdapter compareLessThan java.lang.Object java.lang.Object


The In Process Script approval plugin shows no scripts to approve. Suggestions. Does workflow actually work with an SCM for the groovy script?




Screen Shot 2015-04-15 at 17.06.04.png

Baptiste Mathus

unread,
Apr 24, 2015, 1:29:19 AM4/24/15
to jenkins...@googlegroups.com
In the job, did you check "run in sandbox" ?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a04ae4c5-88e0-434b-92f6-7b34dbc9d065%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

Rinaldo DiGiorgio

unread,
May 12, 2015, 9:59:38 PM5/12/15
to jenkins...@googlegroups.com, bma...@batmat.net
Sorry but this makes no sense. I have some groovy code that is checked in on a remote server that I access with security.  Why do I need to get permission to run it. I am running jenkins in a secure environment.  I don't want to turn in a sandbox.  Any help on how one needs to think about this to understand it would be appreciated because it is not logical. 

Jesse Glick

unread,
Jun 16, 2015, 3:14:39 PM6/16/15
to jenkins...@googlegroups.com, bma...@batmat.net
On Tuesday, May 12, 2015 at 9:59:38 PM UTC-4, Rinaldo DiGiorgio wrote:
Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.ScriptBytecodeAdapter compareLessThan java.lang.Object java.lang.Object

The In Process Script approval plugin shows no scripts to approve.

It would be a signature, not a script. Not shown in your screenshot but it should appear there if the method was indeed rejected.
 
I have some groovy code that is checked in on a remote server that I access with security.  Why do I need to get permission to run it.

Because there is no guarantee from Jenkins’ standpoint that the permissions on your SCM server are stricter than Jenkins’ own permissions, or indeed related at all. See JENKINS-28178.
Reply all
Reply to author
Forward
0 new messages