Build specific branch via REST API
Hello,
We use GitFlow (without develop branch) so we have following branches
- feature/*
- bugfix/*
- hotfix/*
- release/*
- master
We would like to have possibility to build specific branch via REST API.
In the documentation I found that I can call POST request like this:
POST .../app/rest/buildQueue
<build branchName="feature/team-city">
<buildType id="......."/>
</build>
It shows correct branch, but under "Changes" tab I can see "Revision" - refs/heads/master. So it is build against master branch for some reason.

Here is my configuration:


It is maybe affected by some settings or I misunderstood or overlooked something.
Could anybody tell me if it is possible to build specific branch via REST API. If so, what exactly do I need to set up?
Thank you.
Best Regards,
Jakub
Please sign in to leave a comment.
Hi Jakub,
The Changes tab shows you that there is no pending changes. Could you check whether the revision built was in both master and the feature branch? Would it be possible to check that the pulled data was actually the branch?
The REST API call is correct, and we have tested it thoroughly as it is used everywhere, so it's more likely that this is an issue with the display than with the actual data.