I use this extensibly in my pipelines https://www.jenkins.io/doc/book/pipeline/shared-libraries/
For example, I can have the following files /path/src/com/company/deployment/script1.groovy /path/src/com/company/deployment/script2.groovy Now I want both scripts to refer to a common object in /path/src/com/company/deployment/common.groovy For example common.groovy package com.company.deployment.common class MyClass { } script1.groovy package com.company.deployment import com.company.deployment.common MyClass mc = new MyClass() scrpt2.groovy package com.company.deployment import com.company.deployment.common MyClass mc = new MyClass() -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a4fee179-0f21-4827-bae4-8f6a457cf2den%40googlegroups.com.