Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Permission issues with GitLab runner #203

@david-sa

Description

@david-sa

phd: 4.3.0-beta6; docker: 1.11.0; docker-compose: 1.7.0;
gitlab-runner: 1.1.3; executor: shell;


When I run gitlab-runner in system-mode:

  • "lint" job fails to create test/_lint directory:
PHP Warning:  mkdir(): Permission denied in phar:///usr/local/bin/phpmetrics/src/Hal/Application/Command/Job/ReportWriter.php on line 70
  • It works if I previously add _lint directory to the repository.

And if I run it in user-mode, test/_lint is created but:

  • next job, "report", fails when fetching changes:
Fetching changes...
warning: failed to remove tests/codeception/_output/debug/debug-preview-access-login.png
warning: failed to remove tests/codeception/_output/debug/language-de.png
...
  • It works if I edit test.sh adding the line
mkdir -p tests/codeception/_output/debug

between make TEST clean-test and make TEST run-test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions