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

bugfix: JOB_LAST_SUCCESS 魔法变量输出不正确 #1481

Closed
wangyu096 opened this issue Nov 11, 2022 · 1 comment
Closed

bugfix: JOB_LAST_SUCCESS 魔法变量输出不正确 #1481

wangyu096 opened this issue Nov 11, 2022 · 1 comment
Assignees
Labels
done 已上线到正式环境并验收通过 kind/bug 程序故障Bug,漏洞 stage/prod Production environment in tencent has been deploy stage/test Test environment in tencent has been deploy

Comments

@wangyu096
Copy link
Collaborator

Version / Branch / tag

3.6.x

出了什么问题?(What Happened?)

JOB_LAST_SUCCESS 魔法变量输出不正确.
脚本内容:

# job_import {{JOB_LAST_SUCCESS}}
echo ${JOB_LAST_SUCCESS}

image

如何复现?(How to reproduce?)

使用JOB_LAST_SUCCESS 稳定复现

预期结果(What you expect?)

输出格式如下:

云区域ID:IP1,云区域ID:IP2

@wangyu096 wangyu096 added the kind/bug 程序故障Bug,漏洞 label Nov 11, 2022
@wangyu096 wangyu096 self-assigned this Nov 11, 2022
@wangyu096
Copy link
Collaborator Author

代码缺陷。
image

3.6.x版本经过冲过之后,原先的agent_task 只包含hostId,没有云区域ID+IP的信息。需要补充

wangyu096 added a commit that referenced this issue Nov 11, 2022
bugfix: JOB_LAST_SUCCESS 魔法变量输出不正确 #1481
wangyu096 added a commit that referenced this issue Nov 11, 2022
[master]bugfix: JOB_LAST_SUCCESS 魔法变量输出不正确 #1481
@bkjob-bot bkjob-bot added the stage/test Test environment in tencent has been deploy label Nov 11, 2022
@bkjob-bot bkjob-bot added the stage/prod Production environment in tencent has been deploy label Nov 14, 2022
@bkjob-bot bkjob-bot added the done 已上线到正式环境并验收通过 label May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done 已上线到正式环境并验收通过 kind/bug 程序故障Bug,漏洞 stage/prod Production environment in tencent has been deploy stage/test Test environment in tencent has been deploy
Projects
None yet
Development

No branches or pull requests

2 participants