DevOps-Jenkins and Artifactory Integration


Configure artifactory in Jenkins. Go to Manage Jenkins -> Configure Syatem.

Provide, URL and credentials for Artifactory.

Go to specific build Job in Jenkins. In the Build Environment section, select Resolve artifacts from Artifactory.

Click on Refresh and select resolution releases repository.

2015-05-30 10_03_35-CounterApp Config [Jenkins]

In a Post-build step, select Deploy artifacts to Artifactory. Click on Refresh button.

Select Target Release repository and Target Snapshot repository.

2015-05-30 10_04_44-CounterApp Config [Jenkins]

Click on Override default deployer credentials and give credentials of User we created here.

2015-05-30 10_05_49-

Set any deployment properties if you want.

2015-05-30 10_07_20-CounterApp Config [Jenkins]

Build the Job. Observe that all .jar files are stored in Artifactory.

2015-05-30 14_27_11-

Once all jar files are downloaded, job will be successful .

2015-05-30 14_27_31-CounterArtifactoryTest #6 Console [Jenkins]

Verify lib-release directory from Artifactory. It will have all jar files required to build job.

2015-05-31 08_31_39-Index of libs-release_

Verify whether end product of Build job or WAR file is available in the Artifactory or not.

2015-05-31 08_32_01-Artifactory@MS __ Repository Browser

Done!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s