Hello,
I have written some custom groovy scripts (bundled as Jars) which need to access the class jenkins.model.Jenkins
I have my custom JARS installed into Jenkins and they are loaded properly (verified through the Jenkins Script Console). However, When my script imports jenkins.model.Jenkins, it fails with a NoClassDef error.
I can see the jenkins core jar in /var/jenkins_home/war/WEB-INF/lib but they do not seem to be visible to my scripts.
I am guessing this is either a classloader or a security restriction.
Any pointers to resolve this would be appreciated.
Regards,
Rahul