我使用ssh-executor从本地计算机上的gitlab-runner运行作业失败。
同时,我可以运行git clone git@mygitlab.myserver.com,因此我认为使用ssh设置可以。但是,当我尝试使用与gitlab-runner相同的机器运行作业时,结果为:
Using SSH executor...
GitLab: Disallowed command
ERROR: Job failed: Process exited with: 1. Reason was: ()
在我的gitlab-shell.log:
gitlab-shell: Attempt to execute disallowed command <$'bash' $'--login'> by user with key
我的GitLab组件:
GitLab 9.3.6
GitLab Shell 5.1.1
GitLab Workhorse 2.1.1
GitLab API v4
Git 2.13.0
Ruby 2.3.3p222
Rails 4.2.8
postgresql 9.6.3
gitlab-runner:
Version: 9.3.0
Git revision: 3df822b
Git branch: 9-3-stable
GO version: go1.7.5
希望你能帮助我解决这个问题。谢谢!
| 归档时间: |
|
| 查看次数: |
436 次 |
| 最近记录: |