Hi,

Can we define a pipeline DSL script importing a shared lib which is a java 
class ?

Script
@org.jenkinsci.plugins.workflow.libs.Library('mytools')

import org.mytools.Messaging // The Java class imported as shared lib 
Messaging m = new Messaging();

The java class has been defined under the folder 
`src/main/org/mytools/Messaging.java` within the git project cloned as 
shared lib

Cheers

Charles

-- 
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/57934c26-d87f-4d39-88be-e829b4c94e9dn%40googlegroups.com.

Reply via email to