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 On Tue, Mar 12, 2019 at 12:10 PM Peter Berghold <salty.cowd...@gmail.com> wrote: > 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.cowd...@gmail.com > > http://devops.berghold.net > > > -- > 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/CAArvnv2yA6SgjeCyNMmN0v_ecLPCtQgZ2qgu4E2K95B0hd4xqw%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv2yA6SgjeCyNMmN0v_ecLPCtQgZ2qgu4E2K95B0hd4xqw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHjZY_KjBn2k_0L0Knf1Ri-PNq_D9yUQPmSkLkhYNhyYQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.