您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

50 行
1.9KB

  1. Once installed, you have to:
  2. #. Open your odoo.conf file and add extra settings to mention Github
  3. credentials, and the local path where the source code will be downloaded:
  4. * ``source_code_local_path = /workspace/source_code/``
  5. Note: you can define the route as environment variable using the key
  6. SOURCE_CODE_LOCAL_PATH
  7. Note: make sure that Odoo process has read / write access on that folder
  8. * ``github_token = your_github_access_token``
  9. or
  10. * ``github_login = your_github_login``
  11. * ``github_password = your_github_password``
  12. Note: if token and login/password are provided, the token will be used.
  13. The login/password auth will be deprecated by GitHub in the future.
  14. #. Go to 'Settings' / 'Technical' / 'Parameters' / 'System Parameters'
  15. and define the following values:
  16. #. ``github.max_try``: number of call to the API before an error
  17. is raised. The more unstable/slow your connection, the higher should be
  18. this value
  19. #. ``git.partial_commit_during_analysis``: Set to ``True`` if you want to
  20. commit the result of the analysis in the database after each repository
  21. analysis. We recommend to set to ``True`` when you perform the initial
  22. download (potentially with a lot of repositories) in order to reduce the
  23. size of the transaction
  24. .. image:: ../static/description/github_settings.png
  25. #. Go to your(s) user(s) form to add them in the new 'Connector Github Manager'
  26. groups. The members of this group will have the possibility to run Github
  27. synchronization.
  28. Technical Information
  29. ~~~~~~~~~~~~~~~~~~~~~
  30. This module provides 4 crons that you can enable:
  31. * Synchronize All Organizations and Teams (``cron_update_organization``)
  32. * Synchronize Branches List for All repositories (``cron_update_branch_list``)
  33. * Download Source Code for All Github Branches (``cron_download_code``)
  34. * Analyze Source Code for All Github Branches (``cron_analyze_code``)
上海开阖软件有限公司 沪ICP备12045867号-1