diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-02 15:23:15 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-02 15:23:15 -0800 |
commit | 33e107127a4c37cefaf24c0f5dd335e782594da3 (patch) | |
tree | 9e5bef71a83ec71dfe5219ba159ce3ab982fc3fc | |
parent | f00feb14ecba4f2efa0960d81b6085744517d4ed (diff) | |
parent | 008e3d66e9649079037260c072020340c69f3eec (diff) | |
download | gitlab-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.
-rw-r--r-- | app/models/project_services/teamcity_service.rb | 4 |
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}\">"\ |