ARTIFACTORY: How to set up Azure Pipeline and restore Nuget packages

ARTIFACTORY: How to set up Azure Pipeline and restore Nuget packages

AuthorFullName__c
Sara Ngo
articleNumber
000006137
ft:sourceType
Salesforce
FirstPublishedDate
2024-07-07T09:48:23Z
lastModifiedDate
2024-07-07
VersionNumber
3

1. Prerequisites:

2. Download JFrog extension by going to “Organization settings” at the end of the left side menu > Extensions > Browse Marketplace > Type ‘JFROG’

User-added image

User-added image

User-added image

3. Create a github project with the package type that you want to test.

  • You can download some of our examples here: https://github.com/jfrog/project-examples then create a private repo on your GitHub and push each project there. In this example, I’ll perform a Nuget restore.

4. Once done, head to Azure and create a project:

User-added image

5. At the bottom of the left side menu, click ‘Project settings’ > ‘Service connection’. We will choose the service based on the tasks:

User-added image

Please refer: https://github.com/jfrog/jfrog-azure-devops-extension
6. In this case, I’m choosing Artifactory V2 since I’m running a nuget restore job:

User-added image

7. Once finished, we’ll create a pipeline:

User-added image

8. Choose Classic Editor:

User-added image

9. Choose Github and the repo that you just created, for example, I choose test-nuget repo:

User-added image

10. Choose Empty Job:

User-added image

11. Choose the task that you want to test then hit Save and Queue:

User-added image

For example:

User-added image
User-added image

***You might encounter some permission issues. Please follow the message in the log to grant permissions.

12. Hit Run:

User-added image

User-added image