I need to trigger multiple pipelines from another pipeline. For this i got ADO resources in YAML to configure. A resource is anything used by a pipeline that lives outside the pipeline.
Steps i followed:
- Created a GIT repo and created a pipeline yaml on it. This is supposed to be a dummy repo that would only trigger other pipelines.
The yaml there is :
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- none
resources:
pipelines:
- pipeline: 02-understanding-stages-pipeline
project: azure-devops-kubernetes-terraform
branch: master
source: 02-understanding-stages-pipeline
trigger:
branches:
- master
stages:
- Build
- DevDeploy
Error in YAML
An error occurred while loading the YAML build pipeline. The array must contain at l
least one element. Parameter name: stages
02-understanding-stages-pipeline is another pipeline in another project. I need to trigger and set of other such pipelines from this pipeline.
Question :
- Suggestions as how to trigger pipelines from other pipelines
- Any idea how to resolve the error i get
- What are source and pipeline under pipelines? Can explain briefly?
Thanks in advance!!