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.
Смотрите видео How to integrate Artifactory & Azure DevOps | Integrate Artifactory & Azure DevOps to Upload Binary онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь DevOps Coach 10 Ноябрь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,621 раз и оно понравилось 35 людям.