Skip to content

Commit

Permalink
feature: 添加失败插件信息至变量 TencentBlueKing#750
Browse files Browse the repository at this point in the history
  • Loading branch information
cao150260 committed Apr 9, 2020
1 parent 3d91940 commit 9715b02
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@ class BuildEndControl @Autowired constructor(
val taskRecords = pipelineBuildTaskService.getAllBuildTask(buildId)
val errorElements = mutableListOf<String>()
taskRecords.forEach {
val errorElement = "[${it.stageId}]-[${it.taskName}]"
errorElements.add(errorElement)
if(it.status == BuildStatus.FAILED || it.status == BuildStatus.QUEUE_TIMEOUT || it.status == BuildStatus.EXEC_TIMEOUT || it.status == BuildStatus.QUALITY_CHECK_FAIL) {
val errorElement = "[${it.stageId}]-[${it.taskName}]"
errorElements.add(errorElement)
}
}
logger.info("pipeline build fail, add $BK_CI_BUILD_FAIL_TASK, value[$errorElements]")
pipelineBuildVarDao.save(
Expand Down

0 comments on commit 9715b02

Please sign in to comment.