Jason
Jason

Reputation: 416

VS Team Services gives false error on continuous integration 'This version control host is unsupported'

hoping someone has seen this before.

When I try to enable continuous integration in Visual Studio, using Visual Studio Team Services, I get the following error: "This version control host is unsupported. Repositories must be hosted on VSTS or GigHub." This error gets zero results in google.

As you can see in the screenshot, the solution IS hosted by VSTS.

Screen shot of my configuration dialogue

Explaining the screen shot:

  1. Section 1 in the pic is the pop-up that appears after clicking 'Configure Continuous Integration' in the VS2017 status bar.
  2. Section 2 is my VS team explorer window.
  3. The grey boxes are the company website 'mycompany'.

Additional facts:

  1. The VSTS account is owned by admin@mycompany.com, but my dev account, [email protected], has full contributor permissions to the project. I get the same error whether red box 1 above has my personal account selected or admin@mycompany.com
  2. The current loaded solution is the basic starter '.NET Core Web application' in VS2017 Community edition. No authentication selected, no changes to the auto-generated code.
  3. I can build and run the solution locally, check in the solution to VSTS, see the code in the VSTS repository, publish to Azure web app, etc. Everything seems to be working but this.

Appreciate any help. My best guess is that my security permissions are wrong in VSTS, but both accounts are members of the 'admin team' group, and admin@mycompany.com is the creator/owner of the VSTS account and repository, so I don't see how.

Upvotes: 1

Views: 275

Answers (2)

Jason
Jason

Reputation: 416

I was able to use TFVC for version control and get CI/CD to work. Following the newer instructions provided by @starain-MSFT: Continuous Integration

This sets up CI/CD using the VSTS web portal exclusively. It works, but if I click 'configure continuous delivery' in the VS2017 status bar and use that form, I continue to get the error above.

If anyone posts an answer that fixes the exact question asked I'll update and mark that as the answer. Good news is that you can indeed use TFVC with CI/CD. yay, and thanks to @starain-MSFT for the updated link.

Upvotes: 1

starian chen-MSFT
starian chen-MSFT

Reputation: 33728

You are using TFVC version control, the continuous delivery is used for Git version control, so you need to add a new git repository (can be in TFVC team project: Use Git and TFVC repos in the same team project), and use this git repository as source control.

Article about TFVC and Git: Choosing the right version control for your project

Upvotes: 1

Related Questions