Zum Inhalt springenBarrierefrei

Gitlab Topvaz __exclusive__ -

variables: LOG_LEVEL: "info" RETRIES: 2 .test_template: script: - echo "Log level: $LOG_LEVEL"

build: extends: .test_template variables: LOG_LEVEL: "debug" # overrides top-level for this job RETRIES: 5 Use artifacts:reports:dotenv to pass variables between jobs – this is the most underrated GitLab feature: gitlab topvaz

1. Top-level variables (The "Global Vault") Define variables at the root of .gitlab-ci.yml . These apply to all jobs unless overridden. variables: LOG_LEVEL: "info" RETRIES: 2