Gitlab运行程序在mkdir中具有“权限被拒绝”错误

时间:2019-05-28 12:08:09

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

我使用以下脚本启动了gitlabRunner:

gitlab-runner register --tls-ca-file="$GIT_CERTIFICATE_DIR" \
    --non-interactive \
    --url "https://${GIT_SERVER}/" \
    --registration-token "${GIT_RUNNER_TOKEN}" \
    --description "ionic gitlab runner" \
    --executor "shell" \
    --tag-list android,ios \
gitlab-runner install
gitlab-runner start
gitlab-runner run

作业执行时,出现以下错误:

Running with gitlab-runner 11.10.1 (1f513601)
  on ionic gitlab runner xmq8zWSZ
Using Shell executor...
Running on DEMU-MAC01.local...
mkdir: /Users/s.dutta/Workspace/builds/xmq8zWSZ/0/xx/yy-app.tmp: Permission denied
mkdir: /Users/s.dutta/Workspace/builds/xmq8zWSZ/0/xx/yy-app.tmp: Permission denied
ERROR: Job failed: exit status 1

1 个答案:

答案 0 :(得分:0)

看起来各自的gitlab-runner服务未以所需的权限(管理员权限)运行,请检查特权。在Windows主机上运行的GitLab Runner服务的屏幕截图:Screenshot Windows services