修复无法创建前导目录ubuntu

时间:2016-07-01 08:45:13

标签: ubuntu gitlab-ci gitlab-ci-runner

gitlab-ci-multi-runner 1.0.2 (ea19241)
Using Shell executor...
Running on ip-...
Cloning repository...
fatal: could not create leading directories of '/home/gitlab_ci/builds/aac52f34/0/user/app': Permission denied

ERROR: Build failed with: exit status 1

无论如何我能做到这一点吗?

my-issue-in-bitnami

1 个答案:

答案 0 :(得分:1)

Do a sudo (mkdir -P /home/gitlab_ci/builds/ && chmod 777 /home/gitlab_ci/builds/)

You have a permissions problem best solved by making a directory permissive, verifying the problem going away, and then refining your solution as necessary.

If the system itself is shared with untrusted people, you can

  • create a group with the github robot and trusted people,
  • change the group ownership of the directory (chgrp)
  • make the directory group writable but publically not.