I have a Teamcity Project with VCS Root configured like this:
- Default branch:
develop
- Branch specification:
+:refs/heads/(*)
I hope it means I may pass any branch name and it will be processed successfully.
The project contains two builds. Let it be STEP_A
and STEP_B
.
STEP_B
has a trigger finishBuildTrigger
:
{ buildType = "${STEP_A.id}" branchFilter = "+:*" }
which means it will starts after the STEP_A
ends.
I want to run all the builds via REST API. I do POST /app/rest/buildQueue
with parameter branchName = "feature_222"
.
Ok, I see that STEP_A
successfully starts with feature_222
branch checkout. After it ends STEP_B
starts to run BUT with develop
branch checkout. Of course, it is not a desirable behavior.
What should I do to fix that?