Artifactory is a repository manager that allows you to store and retrieve artifacts, such as dependencies or package files. It is like a local repository in the organization.
JFrog Artifactory is the only Universal Repository Manager supporting all major packaging formats, build tools and CI servers. Software binaries (e.g. files created by the build process, any libraries and static files that application requires) are managed through JFrog Artifactory.
Manual distribution of files across many file system is very in-efficient and error-prone in case of updates, rollbacks and uninstall. In contrast, various advantages are offered by JFrog Artifactory.
JFrog Artifactory provides,
- Fully-reproducible builds
- Full visibility of deployed artifacts and used dependencies
- Information about build environment and build status for full trace-ability
- Bidirectional connection between build and artifact information inside the CI server and Artifactory.
Download and configure JFrog Artifactory
Pre-requisite: Java 1.8
Following are the steps to download and create repositories and configure permissions to certain users in JFrog Arifactory:
b. Extract the .zip folder in your system. Go to the Bin folder and execute artifactory.bat c. Go to the browser and visit localhost:8081 in order to visit to the artifactory in browser.
d. Log in as admin by providing the default credentials:
e. You can create a Local repository to store package files created by the Jenkins/Maven project:
Go to Admin -> Repositories ->Local -> New
f. Select Maven
g. Provide key (name: Jenkins-integration) for your repository and check Handle Release and deselect Handle Snapshot.
h. Similarly create another local repository with key (e.g. Jenkins-snapshot) and check Handle Snapshot while deselecting Handle Release. i. Also, create a user that you can utilize from Jenkins to access Artifactory:
Go to admin -> Security -> users -> Click on NEW from Users management window -> Add new user->Save
Verify the list of users.
j. Furthermore, provide the newly created user with permissions to the repositories:
Firstly, go to admin -> security-> users
Secondly, give the name to the permission
Lastly, choose the repositories on which you want to set the permission
-Click save & finish
k. Edit the permission and assign the user:
Also, check the Permissions Management section in Artifactory for recent changes:
Congratulations !! Finally you have configured JFrog Artifactory.
Seems like, now you are ready to integrate Artifactory with CI server (e.g. Jenkins).
Also, click here to integrate Jenkins with JFrog Artifactory !!
Originally published at https://devops4solutions.com on June 19, 2018.