Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get metrics variables set metrics is null #989

Open
shuoliu1 opened this issue Feb 21, 2025 · 0 comments
Open

get metrics variables set metrics is null #989

shuoliu1 opened this issue Feb 21, 2025 · 0 comments

Comments

@shuoliu1
Copy link

shuoliu1 commented Feb 21, 2025

1.gitlab project set variables

2.gitlab_ci.yml set variables

variables:
  MY_VAR: "global_value"  # 全局变量

job1:
  variables:
    MY_VAR: "job_value"   # 作业级变量会覆盖全局变量
  script:
    - echo $MY_VAR        # 输出 "job_value"

get job variables is {} ? how to set variables to metrics? metrics data get ref_name or merge request title ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant