How to mirror Jenkins Plugins to Artifactory

Daniel Poterman
2020-04-20 09:59

Subject 
How to set Artifactory as a mirror for Jenkins Plugins (jenkins.io)

Description
Plugins are the primary means of enhancing the functionality of a Jenkins environment to suit an organization or a user-specific needs.  
Jenkins Plugins are commonly used and can be mirrored into your Artifactory server, thus allowing you to enjoy and leverage all of JFrog and Artifactory's features. 

Instructions
1. Create a Generic remote repository
2. Set the URL to: http://mirrors.jenkins.io/plugins
User-added image

3. Use the 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”