Commit 33e10712 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #8812 from opichals/teamcity_branchName_not_to_be_whole_ref

Fix for TeamCity buildQueue REST API build/@branchName.
parents f00feb14 008e3d66
......@@ -115,13 +115,13 @@ class TeamcityService < CiService
end
end
def execute(data)
def execute(push)
auth = {
username: username,
password: password,
}
branch = data[:ref]
branch = push[:ref].gsub('refs/heads/', '')
self.class.post("#{teamcity_url}/httpAuth/app/rest/buildQueue",
body: "<build branchName=\"#{branch}\">"\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment