I want to trigger a Test pipeline from a stage of Main pipeline, both the pipelines are present in different projects within the same organization. I am able to trigger the pipeline using the resource option but the problem is it triggers the Test pipeline when Main pipeline finishes successfully but I want to trigger the Test pipeline in between run of Main pipeline using an stage. Is it possible to achieve this using any feature of Azure Devops?
For now I am adding this resource in Test pipeline yaml to trigger after Main pipeline.
resources:
pipelines:
- pipeline: Test-Repo
source: Test # Test pipeline from different project
project: private
trigger: true # enable the trigger