Open joelwkall opened 8 years ago
Just looked in the code and found these lines:
if (! vcsRoots.isEmpty()) {
val vcsRoot = vcsRoots.get(0).getVcsRoot();
scm = Scm.builder().url(vcsRoot.getProperty("url")).
branch(vcsRoot.getProperty("branch").replace("refs/heads/", "origin/")).
commit(vcsRoot.getCurrentRevision().getVersion()).build();
}
It looks like it is only looking at the vscRoot of the build project, not the branch of the actual build. How hard would it be to make it look at the build branch instead?
I have a git repository at bitbucket with multiple branches. These are build in TeamCity in a build project that has multiple branches. When a branch is built I expect the WebHooks to POST to my endpoint and notify which branch was built. However, it seems as if the "scm" data in the JSON is always the same, regardless of which branch was built. Example:
Even though the branch build was actually not origin/master.
Can I configure the plugin to use the correct branch name in the POST?