GitLab 9.1.1 push to TeamCity 2017.1.5 (build 47175)
On Gitlab if I go to the Project->Settings->Integrations and select the JetBrains Teamcity CI and I fill up the values for "TeamcityURL", "Build Type" "Username" "Password" I always get 403 Forbidden Errors when pressing the button "Test Connection":
Net::HTTPServerException (403 "Forbidden"):
app/models/project_services/teamcity_service.rb:86:in execute'
app/models/service.rb:129:intest'
app/controllers/projects/services_controller.rb:31:in test'
lib/gitlab/middleware/multipart.rb:93:incall'
lib/gitlab/request_profiler/middleware.rb:14:in call'
lib/gitlab/middleware/go.rb:16:incall'
lib/gitlab/etag_caching/middleware.rb:10:in call'
lib/gitlab/request_context.rb:18:incall'
#gitlab-rake gitlab:env:info
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.3.3p222
Gem Version: 2.6.6
Bundler Version:1.13.7
Rake Version: 10.5.0
Redis Version: 3.2.5
Git Version: 2.11.1
Sidekiq Version:4.2.7
GitLab information
Version: 9.1.1
Revision: d3123f6
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://gitlab.xxx.xxx
HTTP Clone URL: XXXX
SSH Clone URL: XXXX
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 5.0.2
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks
Git: /opt/gitlab/embedded/bin/git
Please sign in to leave a comment.
Hi,
thanks for the report, but this integration bit is developed by the guys at gitlab, so you might want to contact them.
Usually I would expect they are doing a REST API request with the values you passed, so maybe you want to test it by yourself from a command line: https://confluence.jetbrains.com/display/TCD10/REST+API. Ensure that the username, password and URL are correct, and that the user has permissions.
I was giving an alternate port to the URL such as https://teamcity:8443 and that didn't work, but removing the :8443 (and assigning the 443) just work.