microsoft / azure-pipelines-yaml

Azure Pipelines YAML examples, templates, and community interaction
MIT License
1.19k stars 924 forks source link

Azure Pipelines Resource Trigger (branch filter) not working as expected. #603

Open ayush2708 opened 8 months ago

ayush2708 commented 8 months ago

I have a following YML:

name: "$(Date:yyyyMMdd).$(Rev:r)"

trigger: none

pr: none

resources: pipelines:

According to the documentation: The above YML/pipeline is supposed to get triggered if the 'roc-ui Build' is completed on develop or release/* branch.

Issue: Pipeline is getting triggered for develop branch correctly. But when I complete a build on release/ branch it still gets triggered on develop branch's last commit. It picks up the correct Build Artifact produced from release/ branch build but the pipeline itself gets triggered from develop branch last commit instead of release/* branch commit. Kindly Help please!!!!

[EDIT]: My repository is on Bitbucket Cloud

vishalvatsal commented 5 months ago

@ayush2708 does you release branch have the yml pipeline?

ayush2708 commented 5 months ago

@vishalvatsal yes