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

流水线执行失败通知需要展示最后执行的插件名字,因此请预设全局变量获取失败前最后执行插件的名字 #750

Closed
oyc502 opened this issue Feb 24, 2020 · 4 comments
Assignees
Labels
done Production environment in tencent has been deploy for gray UAT environment in tencent has been deploy for test Test environment in tencent has been deploy kind/feat/product 产品特性

Comments

@oyc502
Copy link

oyc502 commented Feb 24, 2020

流水线执行失败通知需要展示最后一个插件名字,不然的话执行失败看消息通知完全不知道是什么原因
因此需要预设全局变量以获取失败前最后执行插件的名字,以便流水线通知可以加上这个最后执行插件名字,这样我们就可以简单判断流水线执行失败的原因了

@zanyzhao zanyzhao pinned this issue Mar 23, 2020
@zanyzhao zanyzhao added the kind/feat/product 产品特性 label Mar 23, 2020
@erwei5168
Copy link

强烈支持,期待平台快速上线该功能。

  • 要不流水线那么多插件,执行异常大家都要每个人都去点击,太耗费大家的工作

@zanyzhao
Copy link
Member

zanyzhao commented Apr 7, 2020

增加“失败插件别名”的系统变量,内置到“流水线失败时通知”里

@iccengan
Copy link

iccengan commented Apr 7, 2020

关联需求:
#929 流水线执行失败通知中展示执行失败的job和task
#755 给流水线上的每个插件增加插件执行结果通知功能
#620 通知里无法体现出当前失败Job

@fayewong-v5
Copy link
Contributor

fayewong-v5 commented Apr 9, 2020

在流水线状态转为失败前,设置两个全局变量:

  • BK_CI_BUILD_FAIL_TASKS:
    1、格式:[STAGE别名][JOB别名]TASK别名
    2、若有多个并发JOB失败,使用换行\n分隔

示例:
BK_CI_BUILD_FAIL_TASKS=[stage-2][单元测试]junit测试
[stage-2][代码检查]pylint

  • BK_CI_BUILD_FAIL_TASKNAMES:
    格式:TASK别名,TASK别名,TASK别名

示例:
BK_CI_BUILD_FAIL_TASKNAMES=junit测试,pylint

fitzcao pushed a commit to fitzcao/bk-ci that referenced this issue Apr 13, 2020
fitzcao pushed a commit to fitzcao/bk-ci that referenced this issue Apr 13, 2020
fitzcao pushed a commit to fitzcao/bk-ci that referenced this issue Apr 13, 2020
fitzcao pushed a commit to fitzcao/bk-ci that referenced this issue Apr 13, 2020
fitzcao pushed a commit to fitzcao/bk-ci that referenced this issue Apr 13, 2020
fitzcao pushed a commit to fitzcao/bk-ci that referenced this issue Apr 28, 2020
fitzcao pushed a commit to fitzcao/bk-ci that referenced this issue Apr 28, 2020
fitzcao pushed a commit to fitzcao/bk-ci that referenced this issue May 20, 2020
fitzcao pushed a commit to fitzcao/bk-ci that referenced this issue May 20, 2020
@irwinsun irwinsun added for test Test environment in tencent has been deploy for gray UAT environment in tencent has been deploy labels May 20, 2020
@irwinsun irwinsun added the done Production environment in tencent has been deploy label May 27, 2020
@zanyzhao zanyzhao unpinned this issue Jun 1, 2020
@fitzcao fitzcao reopened this Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done Production environment in tencent has been deploy for gray UAT environment in tencent has been deploy for test Test environment in tencent has been deploy kind/feat/product 产品特性
Projects
None yet
Development

No branches or pull requests

7 participants