Skip to content

variables:description can only be hardcoded as a variable is not interpreted inside variables:description of .gitlab-ci.yml

Summary

variables:description can be only hardcoded as a variable is not interpreted inside variables:description of .gitlab-ci.yml

Steps

Use one variable as a description of another variable:

variables:
  TEST_VAR: "testing of description"
  NEXT_VAR:
    value: "hello world"
    description: $TEST_VAR

or

variables:
  TEST_VAR: "testing of description"
  NEXT_VAR: { value: "hello world", description: $TEST_VAR }

Then: CI/CD -> Pipelines -> Run pipeline -> Choose an MR (master) with the appropriate .gitlab-ci.yml.

Expected: the variable is interpreted inside the description. Screenshot_2022-11-30_at_11.53.49

Actual: the variable is not interpreted inside the description. Screenshot_2022-11-30_at_11.47.47

Edited by Ihor Illnitskiy