Some additional configuration may be required if you use private dependencies not hosted on the default registries, depending on package manager.
For maven your .m2/settings.xml
needs to be configured for the specific registry you wish to use, see the settings documentation for more details.
For more Jenkins specific configuration of the settings file checkout the documentation.