Browse Source

[Fix-16295][Task] Remote Shell Task plugin run error (#16296)

dev
wangbowen 4 months ago committed by GitHub
parent
commit
82ff24ae99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      dolphinscheduler-task-plugin/dolphinscheduler-task-remoteshell/src/main/java/org/apache/dolphinscheduler/plugin/task/remoteshell/RemoteExecutor.java

2
dolphinscheduler-task-plugin/dolphinscheduler-task-remoteshell/src/main/java/org/apache/dolphinscheduler/plugin/task/remoteshell/RemoteExecutor.java

@ -131,7 +131,7 @@ public class RemoteExecutor implements AutoCloseable {
int exitCode = -1;
log.info("Remote shell task run status: {}", logLine);
if (logLine.contains(STATUS_TAG_MESSAGE)) {
String status = StringUtils.substringAfter(logLine, STATUS_TAG_MESSAGE);
String status = StringUtils.substringAfter(logLine, STATUS_TAG_MESSAGE).trim();
if (status.equals("0")) {
log.info("Remote shell task success");
exitCode = 0;

Loading…
Cancel
Save