How to integrate Artifactory & Azure DevOps | Integrate Artifactory & Azure DevOps to Upload Binary
HTML-код
- Опубликовано: 10 сен 2024
- www.coachdevop...
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 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.
Please make a video on ingress control using aks real-time scenario
Note: using azure devops pipeline your maven application If possible
Thank you..