Class paths for Jenkins?

11 views
Skip to first unread message

Peter Berghold

unread,
Mar 12, 2019, 2:10:01 PM3/12/19
to jenkins...@googlegroups.com
Following up on a silly question from the other day I have another silly question. Where does Jenkins look for jar files to resolve classes and packages?

I've started writing a Java library that I want to access from a pipeline and Jenkins can't seem to find it in spite of it being deployed to /usr/share/java where other Java applications find their jars.   

Any pointers are appreciated.

--

Peter L. Berghold                       Salty....@gmail.com

http://devops.berghold.net


Mark Waite

unread,
Mar 12, 2019, 2:37:45 PM3/12/19
to Jenkins Users
It seems like you may be trying to extend the functionality of Jenkins with additional Java code that you want to run inside the Jenkins process on the Jenkins master, and possibly on one or more agents attached to the master.

If so, first be certain that there isn't already a Jenkins plugin that solves the specific problem you're trying to solve.  The most frequent answer to the question, "Do I need to write a plugin to do X?" is "No, because a plugin already exists to do X, or to do Y which is very similar to X and can be extended or modified to do X".

If a search of available plugins and a discussion of the specific problem you're trying to solve does not identify an existing plugin that will meet the need, then you probably need to write a plugin.

While revising a Jenkins Plugin Development course prior to Jenkins World 2017, I wrote a blog post pointing to many resources on writing Jenkins plugins.  Refer to https://jenkins.io/blog/2017/08/07/intro-to-plugin-development/ for that blog post.

Thanks,
Mark Waite

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv2yA6SgjeCyNMmN0v_ecLPCtQgZ2qgu4E2K95B0hd4xqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Thanks!
Mark Waite

Peter Berghold

unread,
Mar 12, 2019, 3:03:18 PM3/12/19
to jenkins...@googlegroups.com
was kinda hoping I could solve this without the overhead of a module.  And no there isn't as far as I can tell a module that does what I need to do.


For more options, visit https://groups.google.com/d/optout.


--

Slide

unread,
Mar 12, 2019, 3:15:28 PM3/12/19
to Jenkins User Mailing List
Plugins are generally "the" way to add functionality to Jenkins. Without a plugin, it will be difficult to use any jars that you want added to Jenkins.


For more options, visit https://groups.google.com/d/optout.


--
Reply all
Reply to author
Forward
0 new messages