Вчера полночи танцевал с бубном вокруг установки http://www.redmine.org/plugins/bitbucket_reference_redmine на свой redmine. Все почти завелось. Но при попытке добавить аддон в репозиторий bitbucket он весьма информативно сообщает “Something went wrong”. В логах редмайна при этом значится:
Started GET “/bitbucket-references” for 127.0.0.1 at 2018-11-02 15:15:01 +0300
Processing by BbReferencesController#descriptor as /
Current user: anonymous
Rendered plugins/bitbucket_reference_redmine/app/views/bb_references/descriptor.json.erb (5.1ms)
Completed 200 OK in 30ms (Views: 7.1ms | ActiveRecord: 5.8ms)
Крика об ошибках вроде нет. Плагин свежий конировал, https есть. Версия redmine - последний релиз с официального сайта 3.4.6
Может кто-нибудь подсказать что ему не нравится?
Это как минимум значит что redmine в обратку вернул 200. А вот Bitbucket возврат не обработал. Что то не так с возвращаемым значением или урлом колбэка.
Из документации
Limitations / known issues
The Bitbucket Connect system requires your Redmine installation to use HTTPS.
Currently the regex is hardcoded to (?<!&)#([0-9]+), meaning issues have to be referenced using #<issue number>. The negative lookahead is a workaround for Bitbucket bug #13642 (issue #1).
Currently only up to 5 commits per push are supported because of a limitation in Bitbucket's push webhook (issue #2).
Issue references in pull request edits, pull request comment edits or commit comment edits as well as references to issues belonging to closed projects will not cause Redmine journals to be updated or added.
Вот что мы видим
The Bitbucket Connect system requires your Redmine installation to use HTTPS.
Redmine поднят по HTTPS ? Letencrypt совеутую.
кстати - я напомню, что можно схитрить
http://www.redmine.org/boards/2/topics/49046
https://docs.gitlab.com/ee/user/project/integrations/redmine.html
GitLab.com поинтересней же будет