Search code examples
githubazure-pipelinesazure-pipelines-yaml

How to change the repository location for a pipeline in Azure Pipelines


I have imported a repository from BitBucket to GitHub. How can I point the existing pipeline in Azure Pipelines to the new repository location? The UI has failed me so far.


Solution

  • Simplest way is to create a new pipeline, link it to the github repo and point it to the existing yaml file.

    But there is a way to retarget the existing pipeline.

    • Edit the pipeline
    • In the upper right corner open the ... menu
    • Pick the ⚡ Triggers option
    • Click the YAML tab
    • Click the Get Sources option
    • Reconfigure the source repo

    Step by step ideo of the above steps.