Matt W
Matt W

Reputation: 12434

VSTS step to pull from repo

I have a build pipeline (which pulls from our VSTS repos) but I would like to pull from another VSTS repo during the pipeline, based on environment parameters.

Is this possible? If so, which step should I use?

I know NPM can be used to pull from a repo, but I feel that using NPM to do something which VSTS can (and will already have done during the pipeline execution) is overkill.

There does not appear to be a build step with a name akin to "git pull" or "azure repo ..."

Upvotes: 0

Views: 43

Answers (1)

Shayki Abramczyk
Shayki Abramczyk

Reputation: 41775

You can just use the Command Line task and use all git commands (clone/pull):

enter image description here

Or install an extension from the marketplace that do the same thing, for example - Git Repository Downloader:

enter image description here

Upvotes: 1

Related Questions