Forum Discussion

AzureRanger's avatar
AzureRanger
Copper Contributor
Sep 23, 2021

Azure pipeline query

how can I ensure that only the latest pipeline is run in the repo? I have 2 pipelines in the repo (versioning). Every time I make some changes to the code both the pipelines run . I am sure there is ...
  • Ankit Kotnala's avatar
    Sep 27, 2021

    Hi @AzureRanger,

    It seems that you have a trigger on your pipeline to run them whenever a commit is made.
    You can set one of the pipleline trigger to none as
    - trigger:none
    This will not execute that pipeline automatically. Read more about pipeline triggers. 

     

    If you want to use triggers to automatically run your pipeline you can use differnet branches on both the Pipelines and set trigger to differnet branches on different pipeline. 

    AzureRanger 

Resources