1

I have a build provided by a third party via the ExternalTfsBuild service endpoint in VSTS (Type: Team Foundation Server/Team Services). I can use the build successfully in a Release pipeline and deploy it to Azure but I also want to extract some script files from it.

Ideally I'd like to store the files back into VSTS Git so I can track their changes over time. Anyone done this before?

Seb
  • 13
  • 3
  • Do you mean that you get the build artifacts from other TFS/VSTS and want to extract the artifacts and store the files into your VSTS repository? – Andy Li-MSFT Sep 07 '18 at 02:51
  • hi @AndyLi-MSFT, yes, I don't want their source code, I want their build artefacts. – Seb Sep 07 '18 at 14:22
  • Then you can download the build artifacts and copy the needed files to a staging folder, then run the Git commands to push the files to VSTS Git as I mentiond in below answer. You can use the extensiont [TFS artifacts for Release Management](https://marketplace.visualstudio.com/items?itemName=ms-vscs-rm.vss-services-externaltfs) to download the external build artifacts... – Andy Li-MSFT Sep 08 '18 at 01:53

1 Answers1

0

Based on your description, seems the real requirement is syncing between the external TFS and your VSTS Git.

If it is, then you can reference below articles to do that:

However if you just want to extract some script files and commit/push them to VSTS Git, then you can directly extract and copy them to a staging folder, then use the Git command to push back to VSTS Git, you can reference Sync from GitHub to VSTS part in this article.

Andy Li-MSFT
  • 28,712
  • 2
  • 33
  • 55