问题
Need to create a CICD pipeline with yaml using TFVC repository.
回答1:
See this doc: Two types of repositories the pipelines supported.
Until now, the YAML only support the repository of git type, and we haven't expand the feature and YAML grammer to support the YAML for TFVC repository.
Since only one workaround is migrate your repository from TFVC to Git, but I could not sure whether it is feasible for you to do migrate, especially if your repository is a bit old. If repos is little old, migrate will make it lost many history include old commits and builds.
On our official suggestion forum, there has many users have the same demand with you: Make YAML support TFVC. You can vote and comment with your demand there. Our Product Group team and corresponding PMs will reviews these suggestion and considering take it as develop plan to bring more flexible experience for user.
回答2:
YAML pipelines are only supported with GIT repositories, although this is not well documented by Microsoft. You will not be able to use YAML to build your pipelines in TFVC. While its not a option for everyone, you could look into converting your TFVC project into a GIT repository.
Azure DevOps TFVC to GIT Conversion
来源:https://stackoverflow.com/questions/57791669/how-can-i-create-build-pipeline-with-yaml-using-tfvc