Help us learn about your current experience with the documentation. Take the survey.
GitLab.com 上的 ChatOps
GitLab.com 上的 ChatOps 允许 GitLab 团队成员使用 Slack 在 GitLab.com 上运行各种自动化任务。
申请访问权限
GitLab 团队成员可能需要访问 GitLab.com 上的 ChatOps 来执行管理任务,例如:
- 配置功能开关。
- 对 GitLab.com 生产副本运行
EXPLAIN查询。 - 获取我们所有环境的部署状态或特定提交的部署状态:
/chatops run auto_deploy status [commit_sha]
要申请访问 GitLab.com 上的 ChatOps:
-
使用以下方法之一登录 Internal GitLab for Operations (不支持 Okta):
- 您在 GitLab.com 上使用的相同用户名。
- 选择 Sign in with Google 按钮使用您的 GitLab.com 邮箱地址登录。
-
确认您在 Internal GitLab for Operations 中的用户名与您在 GitLab.com 中的用户名相同。如果用户名 不匹配,请在 Ops 实例的用户设置/账户页面 中更新用户名。匹配的用户名可以减少运行多个平台的管理工作量。匹配的用户名也有助于管理访问请求和离职流程等任务。
-
联系您的入职伙伴或经理,请求他们在
#chat-ops-testSlack 频道中运行以下命令将您添加到opsChatOps 项目,将<username>替换为您的 GitLab.com 用户名(如果他们没有权限,您可以在 #infrastructure-lounge Slack 频道中询问):/chatops run member add <username> gitlab-com/chatops --opsHi, could you please add me to the ChatOps project in Ops by running this command: `/chatops run member add <username> gitlab-com/chatops --ops` in the `#chat-ops-test` Slack channel? Thanks in advance. -
确保您已设置双因素认证。
-
将您添加到 ChatOps 项目后,运行以下命令检查您的用户 状态,并确保您可以在
#chat-ops-testSlack 频道中执行命令:/chatops run user find <username>机器人会引导您完成允许您的用户在
#chat-ops-testSlack 频道中执行 命令的流程。 -
如果您在第一步中更改了 GitLab.com 的用户名,请确保 在团队页面中更新此信息 团队页面。