admin管理员组文章数量:1410705
I am configuring a Continuous Deployment (CD) trigger in Azure DevOps and need to exclude pull request branches (refs/pull/) from triggering new releases. However, after applying this exclusion, new releases are also not being triggered for branches matching feature/.
My current setup: I added refs/pull/* to the exclusions to prevent deployments from PR-related branches. After this change, releases no longer trigger for feature/* branches, even though they should. What I expected: Excluding refs/pull/* should prevent releases from PRs. feature/* branches should still trigger new releases as expected. Question: Is there a known issue with excluding refs/pull/* affecting other branch patterns? How can I properly exclude pull request branches without impacting feature/* triggers? Any insights or alternative configurations would be appreciated!
I am configuring a Continuous Deployment (CD) trigger in Azure DevOps and need to exclude pull request branches (refs/pull/) from triggering new releases. However, after applying this exclusion, new releases are also not being triggered for branches matching feature/.
My current setup: I added refs/pull/* to the exclusions to prevent deployments from PR-related branches. After this change, releases no longer trigger for feature/* branches, even though they should. What I expected: Excluding refs/pull/* should prevent releases from PRs. feature/* branches should still trigger new releases as expected. Question: Is there a known issue with excluding refs/pull/* affecting other branch patterns? How can I properly exclude pull request branches without impacting feature/* triggers? Any insights or alternative configurations would be appreciated!
Share asked Mar 4 at 7:57 LiorRabanLiorRaban 113 bronze badges 1- Have tried the suggestions mentioned in my answer below? I'd like to know if any if the suggestions can work for you. @LiorRaban – Bright Ran-MSFT Commented Mar 21 at 2:37
1 Answer
Reset to default 0I attempted with the same configuration of CD trigger (Continuous deployment trigger), and it can only prevent the builds of pull request branches (refs/pull/*
) from triggering new releases. For other branches, the new releases can be triggered as expected.
Build branch filters:
Exclude refs/pull/*
For your case:
If you want the new releases can be triggered only for the builds of branches under the
feature/
folder, you can set the CD trigger like as below.Build branch filters: Include feature/*
If you want the new releases can be triggered for the builds of any branches except pull request branches, you can set the CD trigger like as below.
Build branch filters: Include * Exclude refs/pull/*
I have tested above ways, all of them can trigger new releases for branches feature/*
, and not trigger for pull request branches.
本文标签:
版权声明:本文标题:Azure DevOps: Continuous Deployment Trigger Exclusion for 'refspull' Prevents Releases in 'feature&# 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745056561a2639969.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论