How to connect a Pipeline build agent to private Artifacts registry?

时间:2018-09-18 20:03:02

标签: azure azure-devops azure-pipelines azure-artifacts azure-devops-extensions

We have packages being published to our private Artifacts repository that are dependencies in other Pipeline builds.

When we add our private Artifacts registry https://example.pkgs.visualstudio.com/_packaging/Artifacts@Local/npm/registry/ the build agent does not seem to have access and shows 401 errors.

How can we authorize the Pipeline build agent so that it can access our private Artifacts repository?

1 个答案:

答案 0 :(得分:2)

Ensure you're using either the npm or npm Authenticate task (which will generate an .npmrc that has the build's access token) and that you've given the appropriate identity access to your feed.