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

perf: 补充作业执行方案全局变量引用检测方法对魔法变量的解析逻辑 #583

Closed
nekzhang opened this issue Dec 31, 2021 · 0 comments
Assignees
Labels
kind/enhancement 功能改进特性 stage/dev Dev environment in tencent has been deploy stage/prod Production environment in tencent has been deploy stage/test Test environment in tencent has been deploy stage/uat UAT environment in tencent has been deploy
Milestone

Comments

@nekzhang
Copy link
Collaborator

当前脚本内容中引用魔法变量时,如:

#!/bin/bash

# job_import {{JOB_NAMESPACE_xxxx}}  // 获取命名空间变量xxxx的全部值
# job_import {{JOB_NAMESPACE_ALL}}  // 获取所有命名空间变量的全部值

出现 job_import 关键字时,

  1. 当使用了 {{JOB_NAMESPACE_ALL}} 代表着该作业执行方案的所有命名空间类型变量都被引用了
  2. 当使用了 {{JOB_NAMESPACE_xxx}} (xxx是具体的命名空间变量名)代表着 xxx 命名空间变量被引用了
@nekzhang nekzhang added the kind/enhancement 功能改进特性 label Dec 31, 2021
@nekzhang nekzhang added this to the V3.4.5 milestone Dec 31, 2021
@wangyu096 wangyu096 added the stage/dev Dev environment in tencent has been deploy label Jan 18, 2022
jsonwan added a commit that referenced this issue Jan 18, 2022
…var_ref

perf: 补充作业执行方案全局变量引用检测方法对魔法变量的解析逻辑 #583
@bkjob-bot bkjob-bot added stage/test Test environment in tencent has been deploy stage/uat UAT environment in tencent has been deploy labels Jan 19, 2022
@bkjob-bot bkjob-bot added the stage/prod Production environment in tencent has been deploy label Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement 功能改进特性 stage/dev Dev environment in tencent has been deploy stage/prod Production environment in tencent has been deploy stage/test Test environment in tencent has been deploy stage/uat UAT environment in tencent has been deploy
Projects
None yet
Development

No branches or pull requests

3 participants