How to integrate Artifactory & Azure DevOps | Integrate Artifactory & Azure DevOps to Upload Binary

Published: 10 November 2023
on channel: DevOps Coach
2,621
35

https://www.coachdevops.com/2023/11/h...
Pre-requisites:
Artifactory is installed, up and running
Install only JFrog Extension by using Azure Devops Market place. do NOT install JFrog Artifactory extn.
Service connection is created in Azure Devops for connecting to Artifactory
Service connection for connecting to GitHub from Azure Devops using Personal Access Token
Java based webapp is configured in GitHub
We will automate building a Java project configured in GitHub and we will use Maven to build, package in Azure YAML pipeline and upload WAR file into Artifactory.

Steps to be followed to create a pipeline:
Create a Pipeline:
Login to your Azure Devops dashboard https://dev.azure.com
Go to Pipelines, Click New
select your SCM, in my case, Java Web App code is in GitHub.

Select the Java Repo, select Maven from the option. This will generate YAML file for us.

Add a task for uploading WAR file.
Click on Show assistant, search for generic and select JFrog Generic Artifacts

Choose Upload as command, choose service connection for Artifactory, enter *.war as pattern, enter repo name where artifact will be uploaded. Click on Add.

Now save the pipeline.. Run the pipeline
Now login to Artifactory..Click on Artifactory - Artifacts. We can see the WAR file being uploaded.


Watch video How to integrate Artifactory & Azure DevOps | Integrate Artifactory & Azure DevOps to Upload Binary online without registration, duration hours minute second in high quality. This video was added by user DevOps Coach 10 November 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,621 once and liked it 35 people.