[ Agent ] [ Executor ] - 修改底层执行返回逻辑

This commit is contained in:
zeaslity
2023-11-07 15:53:38 +08:00
parent 4c9a568086
commit dc5ab043fb
3 changed files with 13 additions and 38 deletions

View File

@@ -27,7 +27,7 @@ public class ExecutionServiceImpl implements ExecutionService {
private static final String MANUAL_COMMAND_TYPE = "manual-command";
private static final int COMMAND_MAX_WAIT_TIMEOUT = 15;
private static final int COMMAND_MAX_WAIT_TIMEOUT = 60;
@Resource
OMessageToAgentSender oMessageToAgentSender;
@@ -123,24 +123,6 @@ public class ExecutionServiceImpl implements ExecutionService {
}
// 解析结果
if (StringUtils.isNotBlank(octopusMessage
.getResultCode()) && octopusMessage
.getResultCode()
.startsWith("200")) {
String firstLine = String.format(
"%s 执行结果为 true",
executionContent
);
if (commandResultLog == null) {
commandResultLog = new ArrayList<>();
}
commandResultLog.add(
0,
firstLine
);
}
// debug
log.debug(
"执行命令 {} {} 在规定时间内结束, 结果为 {} 返回内容为 {}",