Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
gitlab-runner
gitlab-runner
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 1,995
    • Issues 1,995
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 204
    • Merge Requests 204
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GitLab.org
  • gitlab-runnergitlab-runner
  • Merge Requests
  • !1391

Merged
Opened May 30, 2019 by Steve Azzopardi@steveazzMaintainer0 of 3 tasks completed0/3 tasks

Fix default cache volume docker-windows register

  • Overview 15
  • Commits 1
  • Pipelines 5
  • Changes 3

What does this MR do?

Fix default cache volume docker-windows register

Why was this MR needed?

When the user specifies docker-windows /cache is still used as a default value, which is never correct in any cache. The default cache volume for docker-windows needs to be c:\\cache.

With this, there is only one limitation, the detection of c:\\cache when the user specified volumes on registration. With the following specification c:\\cache:c:\\User\\ContainerAdministrator\\cache we fail to add the c:\\cache to be used as a cache directory and the reason for this is because a simple string match is being done. For Linux, it's easier since we can split the string with : but for Windows : is part of the volume mounting. To properly support this scenario we require to expose the volume parser from Docker which is not ideal.

closes #3915 (closed)

Are there points in the code the reviewer needs to double check?

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Added tests for this feature/bug
  • In case of conflicts with master - branch was rebased

What are the relevant issue numbers?

Closes #3915 (closed)

Edited Jun 03, 2019 by Steve Azzopardi
Assignee
Assign to
Reviewer
Request review from
12.0
Milestone
12.0 (Past due)
Assign milestone
Time tracking
Reference: gitlab-org/gitlab-runner!1391
Source branch: 3915-default-cache-volume-when-registering-windows-docker-executor

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.