I have to use cases where I cant run my workflow due to errors thrown by script-security-plugin. Both workflows are being served via SCM:
1 - org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified new org.codehaus.groovy.runtime.GStringImpl java.lang.String java.lang.String[]
Can be reproduced by setting a job at jenkins 1.580.1, workflow-plugin 1.3 and script-security-plugin 1.13, and Groovy CPS DSL from SCM from master branch at https://github.com/witokondoria/jenkins-workflow-issues
2 - org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified new org.codehaus.groovy.runtime.GStringImpl groovy.lang.GString$2 java.lang.String[]
Can be reproduced with the same previous settings, just commenting line 19 @ test.groovy
I could circumvent those issues by not using GStrings, but seems dirty and with some other complex strcutures, unusable.
Could this be a bug?