Open mtarng opened 4 years ago
You're correct. When you click 'Run pipeline', it won't even give the option to run the pipeline on any branches that don't have a pipeline.yaml in them. This kinda sucks, there's a serious amount of duplication and a lot of possibility of drift and overhead if the pipeline needs to be changed.
Topic: The current assumption of: "A service's build pipeline definition (its
build-update-hld.yaml
file) only needs to exist in a single branch and can be configured to trigger off any branch." is incorrect.According to documentation:
Additionally for "CI Triggers", which are being used for build pipelines:
This means:
build-update-hld.yaml
file) needs to exist in every ring branch and needs to be configured to trigger off of the ring's branch.master
, but could be another if using GitFlow) the source-of-truthbedrock.yaml
file exists for a project, there needs to be the lifecycle pipeline definition file (lifecycle-pipeline.yaml
) in the same branch, configured to trigger off of that branch.Additional docs on CI triggers: https://docs.microsoft.com/en-us/azure/devops/pipelines/build/triggers?view=azure-devops&tabs=yaml#ci-triggers
Discussion that linked docs: https://github.com/MicrosoftDocs/vsts-docs/issues/2394#issuecomment-500559993
Question: How should spk enforce and document this behavior?