Hey all, I'm running into an issue and wondering if anyone has a solution for it.
What I would like:
One Build Configuration which triggers a build when a Pull Request is created. That Publishes a Commit Status back to Azure DevOps GIT repo.
When the pull request is completed I would like 1 build per commit created from the master branch.
What I've ended up with so far:
I have a build configuration that is triggering a build for each commit on master, but as a side affect, when a Pull Request is created it is creating multiple builds. It appears to be one build per commit done in the feature branch.
I believe the issue is with the build Trigger, as I do have " Trigger a build on each check-in" toggled on, which is exactly what I want for the master branch, but I want Pull Request branches to only trigger one build.
Extra details I think may be useful.
Using Azure DevOps GIT repos.
Out branch spcification for VCS root is:
+:refs/(pull/*/merge) --I'm wondering if this actually needs to be "refs/pull/*/head" as I type this out
Anyone have any thoughts?
While researching this issue I did run across the build feature "Pull Request" which I had overlooked originally when setting this up. But it looks like that doesn't support Azure DevOps yet.