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
This commit is contained in:
@@ -281,6 +281,11 @@ public class ReviewCommand extends SshCommand {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getTaskDescription() {
|
||||
return "gerrit review";
|
||||
}
|
||||
|
||||
private void applyReview(PatchSet patchSet, final ReviewInput review) throws RestApiException {
|
||||
gApi.changes()
|
||||
.id(patchSet.getId().getParentKey().get())
|
||||
|
Reference in New Issue
Block a user