build.allActions.each { item -> actions = item println "ACTIONS: ${actions.class}" if ( actions instanceof org.jenkinsci.plugins.workflow.steps.scm.MultiSCMRevisionState) {
..java.lang.IllegalAccessError: tried to access class org.jenkinsci.plugins.workflow.steps.scm.MultiSCMRevisionState from class Script1$_run_closure1
if I replace with hudson.model.ParametersAction I do not get an exception.
RinaldoIn general, don't use instanceof for classes coming from different classloaders.
You can use string comparisons between classnames (theClass.getName()).
Cheers
--
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/c3626d49-ecf2-450d-8f97-9ddf19155e11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.