SSH commands: Set task name for ReviewCommand Task name is otherwise set to the command line which in ReviewCommands case can be a multi line string which leads to pretty unreadable and bordering on unparseable "loglines" like: [2018-01-10 09:59:17,619] [SSH gerrit review 12345,4 --message 'Build: http://jenkins.company.com/job/JOB_NAME/job/identifier/182/ : UNSTABLE http://jenkins.company.com/job/JOB_NAME/job/other/13677/ : SUCCESS'\ --verified -1 --code-review 0 (jenkins)] WARN <class> : <message> Change-Id: I74a0ff062b38a1980c4781e8e79a368bf028c549
diff --git a/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/ReviewCommand.java b/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/ReviewCommand.java index ca69b54..dfe1638 100644 --- a/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/ReviewCommand.java +++ b/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/ReviewCommand.java
@@ -281,6 +281,11 @@ } } + @Override + protected String getTaskDescription() { + return "gerrit review"; + } + private void applyReview(PatchSet patchSet, final ReviewInput review) throws RestApiException { gApi.changes() .id(patchSet.getId().getParentKey().get())