summaryrefslogtreecommitdiff
path: root/app/models/project_services
diff options
context:
space:
mode:
authorWilli Nesensohn <wnesensohn@gmail.com>2019-01-10 16:34:49 +0000
committerRobert Speicher <rspeicher@gmail.com>2019-01-10 16:34:49 +0000
commitdf73b90a4330dff7d7cacf22fc67198490d9611a (patch)
tree6fce9bf3ec65a3d7e50162bdf9cdd9cba9395f43 /app/models/project_services
parent626bd9d4cca652f2f21d2aba8d76e1959ffacda0 (diff)
downloadgitlab-ce-df73b90a4330dff7d7cacf22fc67198490d9611a.tar.gz
Use revision instead of build number for TC query.
Diffstat (limited to 'app/models/project_services')
-rw-r--r--app/models/project_services/teamcity_service.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/models/project_services/teamcity_service.rb b/app/models/project_services/teamcity_service.rb
index b8e17087db5..3245cd22e73 100644
--- a/app/models/project_services/teamcity_service.rb
+++ b/app/models/project_services/teamcity_service.rb
@@ -39,9 +39,7 @@ class TeamcityService < CiService
end
def help
- 'The build configuration in Teamcity must use the build format '\
- 'number %build.vcs.number% '\
- 'you will also want to configure monitoring of all branches so merge '\
+ 'You will want to configure monitoring of all branches so merge '\
'requests build, that setting is in the vsc root advanced settings.'
end
@@ -70,7 +68,7 @@ class TeamcityService < CiService
end
def calculate_reactive_cache(sha, ref)
- response = get_path("httpAuth/app/rest/builds/branch:unspecified:any,number:#{sha}")
+ response = get_path("httpAuth/app/rest/builds/branch:unspecified:any,revision:#{sha}")
{ build_page: read_build_page(response), commit_status: read_commit_status(response) }
end