Re: RejectedAccessException

2017-12-12 Thread Peter Berghold
OK: After deciding to put this project aside and not look at it for a while I came back to it and found out that I was being stupid. :-( The constructor for the Notification class has two parameters not one and in the heat of battle so to speak I forgot about the other one. Once I got that straig

Re: RejectedAccessException

2017-12-09 Thread Victor Martinez
Apparently unclassified means the script approval process cannot be used: https://jenkins.io/doc/book/managing/script-approval/ . As Jesse already mentioned in another thread (https://stackoverflow.com/questions/33573568/sandbox-is-preventing-me-from-formatting-a-string) it seems a bug in the

RejectedAccessException

2017-12-08 Thread Peter Berghold
What does this mean and how do I fix it? org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified new com.att.ncs.actions.Notifications WorkflowScript somewhere in this: } catch (Throwable e) { currentBuild.result = "FAILURE" stage('squeal like

RejectedAccessException: unclassified method java.lang.String call java.lang.String org.jenkinsci.plugins.workflow.cps.CpsClosure2

2017-02-21 Thread Thomas Fjellstrom
When using the scripted pipeline, I'm seemingly unable to pass closures into methods, that then call those closures? Maybe my grasp of groovy and jenkins is weak. Full error: org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified method java.lang.String call java.la