JCasC - seed job with shared lib/imports

62 views
Skip to first unread message

Łukasz Dywicki

unread,
Mar 20, 2023, 6:23:30 PM3/20/23
to Jenkins Users
Hello,
I was guided from github here in order to get advice in topic of *jobdsl* with shared library.

A while ago I ran into situation where I made (just shut) PR https://github.com/jenkinsci/job-dsl-plugin/pull/1260 which was adding 'additionalClasspath' declarations for use by seed jobs.
According to message exchange in that PR there is a way to get that functionality without changes to plugin code. I must note that I been trying to get that configured number of times, but my "utilities" classes were never read and available to seed jobs. Does anyone made it working *without* pipeline or pipeline which creates seed jobs?
All I look for is a plain example where seed jobs defined with jcasc can import a shared lib class.

Cheers and thanks in advance,
Łukasz

Carlos Bittencourt

unread,
Sep 13, 2025, 5:52:37 AMSep 13
to Jenkins Users
Hi Lukasz,

Did you get additionalClasspath to work with newer versions of job-dsl?

Thanks,
Carlos

Reply all
Reply to author
Forward
0 new messages