Artifactory-Configuring With Jenkins

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9
At a glance
Powered by AI
The document discusses how to configure Artifactory for use with Jenkins projects and the steps involved in integrating Maven and Free Style projects with Artifactory.

The steps include installing the Artifactory plugin, adding the Artifactory server details, saving the configuration, and selecting Artifactory as the repository for deploying artifacts.

The steps include creating a new Maven project item, configuring source code management, configuring the build, and selecting Artifactory as the target for deploying artifacts in the post-build actions.

Configuring Artifactory

1. Install artifactory (refer


https://www.jfrog.com/confluence/display/RTF/Installing+on+Linux+Solaris+or+Mac+O
S#InstallingonLinuxSolarisorMacOS-InstallingArtifactory)
2. Login into artifactory& click on admin & create new local repository, then select maven
repository

3. Click on save & finish

Configuring artifactory in jenkins

 Configuring Jenkins
o Installing the artifactory plugin in Jenkins

QUALITY THOUGHT * www.facebook.com/qthought * www.qualitythought.in


PH: 9963486280, 9963799240 Location: Ameerpet / Kondapur Email Id: info@qualitythought.in
o Configure the artifactory plugin. Go to the Manage Jenkins => configure system
and select artifactory& enter configuration

o Click on Add Artifactory Server. Enter the information such as shown in image
below consisting of url, username & password.

o Click on Test Connection

QUALITY THOUGHT * www.facebook.com/qthought * www.qualitythought.in


PH: 9963486280, 9963799240 Location: Ameerpet / Kondapur Email Id: info@qualitythought.in
o Click on save Button.

Creation of Maven Project


1. Create new Item & Select Maven Project

2. Configure Source Code Management

QUALITY THOUGHT * www.facebook.com/qthought * www.qualitythought.in


PH: 9963486280, 9963799240 Location: Ameerpet / Kondapur Email Id: info@qualitythought.in
3. Select Build and configure Build

4. Select Post Build Actions and Deploy artifacts to artifactory

QUALITY THOUGHT * www.facebook.com/qthought * www.qualitythought.in


PH: 9963486280, 9963799240 Location: Ameerpet / Kondapur Email Id: info@qualitythought.in
5. Click Refresh & select Repository created in artifactory

6. Click on save

QUALITY THOUGHT * www.facebook.com/qthought * www.qualitythought.in


PH: 9963486280, 9963799240 Location: Ameerpet / Kondapur Email Id: info@qualitythought.in
7. Build the project and wait for the build to be successful
8. Click on the artifactory build info in builds

9. Navigate into the artifactory and you can find the following

Creation of Free Style Maven – artifactory integration

1. Create a new free style project


2. Select source code
3. Configure Build Environment & select Maven-Artifactory

QUALITY THOUGHT * www.facebook.com/qthought * www.qualitythought.in


PH: 9963486280, 9963799240 Location: Ameerpet / Kondapur Email Id: info@qualitythought.in
4. Navigate to Build Steps & Select invoke Artifactory Maven 3

5. Select Goals

QUALITY THOUGHT * www.facebook.com/qthought * www.qualitythought.in


PH: 9963486280, 9963799240 Location: Ameerpet / Kondapur Email Id: info@qualitythought.in
6. Save the Project/Item & click Build
7. Click on Artifactory Build Info

8. Click OnArtifactory Repo Browser & Check the builds generated.

QUALITY THOUGHT * www.facebook.com/qthought * www.qualitythought.in


PH: 9963486280, 9963799240 Location: Ameerpet / Kondapur Email Id: info@qualitythought.in
9.

QUALITY THOUGHT * www.facebook.com/qthought * www.qualitythought.in


PH: 9963486280, 9963799240 Location: Ameerpet / Kondapur Email Id: info@qualitythought.in

You might also like