Mike Chelen
Mike Chelen

Reputation: 402

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

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?

Upvotes: 1

Views: 969

Answers (1)

Alex Mullans
Alex Mullans

Reputation: 1739

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.

Upvotes: 3

Related Questions