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 a way to ensure that only the latest pipeline runs. Any help or links to documentation would be appreciated

  • 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 

  • Ankit Kotnala's avatar
    Ankit Kotnala
    Brass Contributor

    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 

Share