How to stop azure dev ops yaml validation build from running for each branch?

前端 未结 1 746
既然无缘
既然无缘 2021-01-28 03:55

We are using azure dev ops for CICD and validating PR\'s.

Yesterday I decided to start making yaml files for validation builds.

I created the pipeline. I set the

相关标签:
1条回答
  • 2021-01-28 04:32

    Set;

    # A pipeline with no trigger
    trigger: none
    

    On your validation build pipeline. This will stop the build being run regardless of which branch / paths have been pushed.

    The validation build pipeline will still respect the branch policies you've setup for PRs.

    You can then have something like;

      paths:
        include:
          - 'src/ProjectA/*'
      branches:
        include:
          - development  
    

    For your CI build pipelines which will trigger when there's a successful PR that affects ProjectA.

    0 讨论(0)
提交回复
热议问题