So I've seen the following posts
https://teamcity-support.jetbrains.com/hc/en-us/community/posts/206806645-Build-s-Artifact-Dependency-cannot-be-based-on-branch-selection?input_string=Cannot%20dependency%20artifacts (and I will be voting for this one)
I have a similar problem, however, these posts have not catered for the exact issue.
In my VCS root branch spec I have +:refs/pull/*/head (and tried based on the above post +:(refs/pull/*/head) ), I have also tried with and without this filter in the trigger too.
When I first create a pull request in my source control (Gogs) from a feature branch, it picks up the changes perfectly and the build triggers. Great! A package is created and pushed to a Test environment.
However, if more work is required based on testing, changes will be made on the feature branch and pushed to the repo. In Gogs (just like in GitHub), I see the commits on the feature branch and if I look at the Pull Request page I equally see the pushed commits. However, these pushed changes fail to trigger a new build. If I try doing a
git push origin HEAD:refs/heads/feature-branch-name
In the TC overview page I now see the link highlighting the pending changes, however, if click through the pending changes view under builds it just states "not triggered"
Lastly, I manually ran the build and select the PR along with the default option taking the latest changes from source control, when the build runs, it runs successfully but doesn't pick up the changes
Please can you suggest I to fix this? We are using version 10