Skip to content

Fix the repository cloning error on Windows with `cmd` shell executor

Romuald Atchadé requested to merge cert-ca-file-error-on-windows into main

What does this MR do?

Fix the repository cloning error on Windows with cmd shell executor

There can be

  error setting certificate verify locations:
  CAfile: <PROJECT_PATH>.tmp\CI_SERVER_TLS_CA_FILE
    CApath: none
    The system cannot find the path specified.

error during repository cloning on Windows with cmd shell executor.

The reason is that command line arguments length limit on Windows is 8191 bytes.

To avoid the issue let's split the certificate chain into several commands to write to a file.

Continues the work started in !1446 (closed)

Why was this MR needed?

Because there is the repository cloning error on Windows with cmd shell executor.

What's the best way to test this MR?

What are the relevant issue numbers?

Fixes #3422 (closed), #3769 (closed), #4411 (closed)

Merge request reports