I am stuck and confused with Azure Pipelines naming and setup, so crying for help.
I want to run UI automated tests every time the application is deployed.
I have pipeline named 'Application'. It has branch 'release/XXXX' set to default, and also branch 'develop'. Application pipeline is run every time the project should be built for any branch without deploy. But manually I can trigger pipeline to not only build, but also deploy Application to QA environment - it produces pipeline stage 'QaDeploy'.
So I want to start my other pipeline 'UITests' once the 'QaDeploy' stage in 'Application' pipeline exists and is green. The problem is my 'UITests' pipeline gets triggered for every commit to ANY branch.
See below yaml file content. It is content of yaml file in 'release/XXXX' branch, and pipeline us set to use this branch. Please tell me where I am wrong. Thanks in advance.
resources:
pipelines:
- pipeline: UITests
source: Application
trigger:
stages:
- QaDeploy
branches:
include:
- refs/heads/release/*