diff options
author | Rémy Coutable <remy@rymai.me> | 2016-04-05 15:11:31 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-04-13 10:01:49 +0200 |
commit | 3ea955a637127e6e11bc9fe270f87f63226b9d86 (patch) | |
tree | 1a82d4fd41f6294259e155b36e4af85fbaeb855e /app | |
parent | 061370790e415361c920e1404063955f4932e5ef (diff) | |
download | gitlab-ce-3ea955a637127e6e11bc9fe270f87f63226b9d86.tar.gz |
Improve TeamcityService and its specsfix-trailing-slash-in-teamcity_url-3515
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app')
-rw-r--r-- | app/models/project_services/teamcity_service.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/project_services/teamcity_service.rb b/app/models/project_services/teamcity_service.rb index 246c5eb4a82..8dceee5e2c5 100644 --- a/app/models/project_services/teamcity_service.rb +++ b/app/models/project_services/teamcity_service.rb @@ -91,7 +91,7 @@ class TeamcityService < CiService ).to_s auth = { username: username, - password: password, + password: password } @response = HTTParty.get(url, verify: false, basic_auth: auth) end @@ -108,7 +108,7 @@ class TeamcityService < CiService built_id = @response['build']['id'] URI.join( teamcity_url, - "#{teamcity_url}/viewLog.html?buildId=#{built_id}&buildTypeId=#{build_type}" + "/viewLog.html?buildId=#{built_id}&buildTypeId=#{build_type}" ).to_s end end @@ -145,7 +145,7 @@ class TeamcityService < CiService branch = Gitlab::Git.ref_name(data[:ref]) self.class.post( - URI.join(teamcity_url, "/httpAuth/app/rest/buildQueue").to_s, + URI.join(teamcity_url, '/httpAuth/app/rest/buildQueue').to_s, body: "<build branchName=\"#{branch}\">"\ "<buildType id=\"#{build_type}\"/>"\ '</build>', |