Skip to content

Branch posted is always master branch #5

Description

@joelwkall

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:

"scm": {
      "url": "https://bitbucket.org/xxx/yyy.git",
      "branch": "origin/master",
      "commit": "zzzz"
    }

Even though the branch build was actually not origin/master.

Can I configure the plugin to use the correct branch name in the POST?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions