J- frog integeration

ajay lakshmandas
3 min readMay 24, 2023

--

J frog integration:

jenkins and j frog integration

Prerequisites:

Jenkins
antifactory plugin

J frog installation:

It can be installed with 3 basic commands they are

  1. wget -O jfrog-artifactory-pro.tar.gz https://releases.jfrog.io/artifactory/artifactory-pro/org/artifactory/pro/jfrog-artifactory-pro/[RELEASE]/jfrog-artifactory-pro-[RELEASE]-linux.tar.gz
  2. tar -xvzf jfrog-artifactory-pro.tar.gz

Unzip the zip file which is dowloded

3. ./artifactory-pro*/app/bin/artifactoryctl start

Procedure:

Step1: Install plugin in Jenkins

Manage Jenkins -> manage Pugin -> available plugin -> antifactory

Click install without restart

Step 2: Go to Jfrog

Add provide the username and password

The username and password should be created new click save and give the credentials in system configuration

Go to dashboard and click

Manage Jenkins -> system tool configuration -> go to Jfrog section and add the url of the jfrog website

Provide the url of jfrog

Provide the username and password which is created above

Step 3: Create a freestyle project

Step 4: Add git repository with contains java file (it can be any file)

Step 5: Go to build section and add Maven3 antifactory integration
and provide you Jfrog server details if don’t know no problem just click the refresh button it will fetch all those details from the server as everything is mentioned in the system configuration

Step 6: Now go to build section and add invoke top level maven targets and give clean package in goal section
wich will compile your code and also package it. For example, if your pom says the project is a jar, it will create a jar for you when you package it and put it somewhere in the target directory (by default).

Step 7: Click save and now build your project

Step 8: Our artifacts will be saved in jfrog antifactory

--

--

No responses yet