summaryrefslogtreecommitdiff
path: root/app/models/project_services
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-02 15:23:15 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-02 15:23:15 -0800
commit33e107127a4c37cefaf24c0f5dd335e782594da3 (patch)
tree9e5bef71a83ec71dfe5219ba159ce3ab982fc3fc /app/models/project_services
parentf00feb14ecba4f2efa0960d81b6085744517d4ed (diff)
parent008e3d66e9649079037260c072020340c69f3eec (diff)
downloadgitlab-ce-33e107127a4c37cefaf24c0f5dd335e782594da3.tar.gz
Merge pull request #8812 from opichals/teamcity_branchName_not_to_be_whole_ref
Fix for TeamCity buildQueue REST API build/@branchName.
Diffstat (limited to 'app/models/project_services')
-rw-r--r--app/models/project_services/teamcity_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project_services/teamcity_service.rb b/app/models/project_services/teamcity_service.rb
index c4b6ef5d9a9..b6932f1c77b 100644
--- a/app/models/project_services/teamcity_service.rb
+++ b/app/models/project_services/teamcity_service.rb
@@ -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}\">"\