Skip to content

Draft: Add artifacts_url setting

Tomasz Maczukin requested to merge add-artifacts-url-setting into main

What does this MR do?

Allows to configure a specific URL that should be used as the base of artifact upload/download operations.

Why was this MR needed?

In some specific situations the URL used by GitLab Runner to communicate with GitLab may be not the one that should be used for Git operations. For such case we've introduced the clone_url setting in the past. In even less common situations it may happen that the artifact operations should use yet another URL as the base (we're currently struggling with a setup like that for https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/14874#note_852306043).

This MR adds then another setting - artifacts_url. If present it's what will be used when calling the artifacts-downloader and artifacts-uploader helper commands. If not, the operations are using the url setting value as it's already being done.

What's the best way to test this MR?

What are the relevant issue numbers?

Related to https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/14874#note_852306043

Edited by Tomasz Maczukin

Merge request reports