Add an external or third party library to pipeline


  • I would like to add a 3rd party library to my workflow script.
  • I would like to add an external library to my workflow script.


  • Cloudbees Jenkins Enterprise
  • Workflow plugin


There is not currently any mechanism to add other libraries to the Groovy “classpath”. At any rate it is not recommended to use libraries like HTTP Client directly from the Groovy workflow code, for a number of reasons. It is much safer to use external processes for any real work the flow performs, particularly if it might be blocked on I/O. If you need to access a network resource, use curl or wget or the like from a sh step.

Have more questions? Submit a request


Please sign in to leave a comment.