Gitlab CICD Variable string interpolation

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

Please add ability for string variables to evaluate strings like below. This would be wonderful and reduce the amount of runtime, group or repo variables required.

CI_SERVER_HOST=gitlab.example.com

variables:
  SONARQUBE_URL: "https://sonarqube.${CI_SERVER_HOST//gitlab.}"

This would evaluate to https://sonarqube.example.com.

An alternative request if this is not possible is the creation of a new built-in variable CI_SERVER_DOMAIN, which would be: CI_SERVER_DOMAIN=example.com compared to CI_SERVER_HOST=gitlab.example.com
If the domain is just gitlab.com, then this CI_SERVER_DOMAIN variable would be just be "com".

Edited by 🤖 GitLab Bot 🤖