This is strange. My first guess would be that the class isn't on the
classpath of the script but then, the import should fail as well.
Is there a reason why you omitted the import in the code sample you pasted?
Does it work when you call it before the try{}?
Can you call other methods of the class?
> I am importing class as import com.jda.JenkinsUtil and using it in script
> file pipeline.groovy as below .
> I am always facing issue as
>
> groovy.lang.MissingPropertyException: No such property: JenkinsUtil for class
>
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/4c017970-8129-416e-852a-47504541bdb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.