How to Configure Artifactory as a Mirror for Jenkins Plugins

Daniel Poterman
2021-03-25 08:48

Plugins are the primary means of enhancing the functionality of a Jenkins environment to suit organizational or user-specific needs. Jenkins plugins are commonly used and can be mirrored in your Artifactory server, thus allowing you to enjoy and leverage all of the features that Artifactory and JFrog have to offer. To do this:
1. Create a generic remote repository
2. Set the URL to:
User-added image

3. Use cURL command to download and cache plugins. For example, to download the latest Artifactory plugin, you can use the following command: 

curl -u <USERNAME>:<PASSWORD> “http://localhost:8082/artifactory/jenkins-remote/artifactory/latest/artifactoy.hpi”