jfrog / jfrog-azure-devops-extension

Apache License 2.0
47 stars 61 forks source link

Authentication in JFrog dotnet task #343

Open Tobias-08 opened 2 years ago

Tobias-08 commented 2 years ago

Hi, I want the JFrog dotnet task to do a restore against an authenticated nuget feed on Artifactory. What do I have to do to make authentication work? The Microsoft dotnet task has an attribute externalFeedCredentials for using service connection credentials but the JFrog task has not. What is the targetResolveRepo in the JFrog task for? Is this for authentication?

Thanks!

eyalbe4 commented 2 years ago

@Tobias-08. The credentials to Artifactory are set as part of the JFrog Artifactory v2 Service Connection. This service connection is then set as a parameter of the task. See here and here and let us know if you have follow-up questions.

Tobias-08 commented 2 years ago

@eyalbe4 OK, thanks. I'll give it a try. What is targetResolveRepo for, anyway? The description/docs is not very helpful for me.

eyalbe4 commented 2 years ago

@Tobias-08, The documentation relies very much on the classic UI view of Azure DevOps, and the UI includes description for all fields. The tasks UI allows creating the pipeline yaml. I guess we should add to the documentation a description for all the yaml properties.

Tobias-08 commented 2 years ago

@eyalbe4 The tasks UI says 'Sets the resolution repository'. That's not very meaningful.

fourpastmidnight commented 8 months ago

Basically, it's the Artifactory Repository Key of the repository from which to resolve artifacts.