Forum Discussion

amitaiemd's avatar
amitaiemd
Copper Contributor
Jul 03, 2023

Azure pipelines, not able to connect TFS repository via Azure repo pipeline

Hi Team,

Need one help here, I have 2 pipelines 1) Trigger Pipeline 2) Main Pipeline

Trigger Pipeline: Codebase exist here based on TFS repo(I know limitation of having pipelines.yml) and have a pipeline just to trigger another main pipeline.

Main Pipeline: Where the actual pipelines.yml exist and it is based on Azure repo.

Problem is after checking in files to TFS, trigger pipeline execute but it does  not trigger the main pipeline. I am having concern on these lines in main pipeline(Azure repo where pipelines.yml present),

resources

   repositories

   -  repository: xyz

       type: ?

       name: ?

       ref: ?

 

Please help me how do I reference TFS repo here in place of "?".

Thanks

1 Reply

  • chamindac's avatar
    chamindac
    Brass Contributor

    Hi amitaiemd 

    YAML piplines as of now does not support TFVC (I think by TFS repo you mean a TFVC repo) and you can find that information https://developercommunity.visualstudio.com/t/enable-yaml-for-tfvc-1/419818

    You could however, try a workaround such as downloading TFVC code to your build agent in a YAML pipeline using Azure DevOps REST API https://stackoverflow.com/questions/61375313/azure-pipeline-build-bring-tfvc-project-references-into-git-build.

    REST API for https://learn.microsoft.com/en-us/rest/api/azure/devops/tfvc/items/get?view=azure-devops-rest-7.1&tabs=HTTP