You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using new option in Gerrit global.commentOnlyChangedLines=true
It fails if the commit is a cherry-pick.
From log file:
Exception in thread "main" pl.touk.sputnik.connector.gerrit.GerritException: Error when retrieve modified lines
at pl.touk.sputnik.connector.gerrit.GerritCommentFilter.init(GerritCommentFilter.java:51)
at pl.touk.sputnik.connector.gerrit.GerritFacadeBuilder.buildCommentFilter(GerritFacadeBuilder.java:68)
at pl.touk.sputnik.connector.gerrit.GerritFacadeBuilder.build(GerritFacadeBuilder.java:48)
at pl.touk.sputnik.connector.ConnectorFacadeFactory.build(ConnectorFacadeFactory.java:25)
at pl.touk.sputnik.Main.getConnectorFacade(Main.java:48)
at pl.touk.sputnik.Main.main(Main.java:40)
Caused by: com.urswolfer.gerrit.client.rest.http.HttpStatusException: Request not successful. Message: Not Found. Status-Code: 404. Content: Multiple changes found for I9b5bd093c5ae8e22142eb15563e922b0e29b56c3.
The text was updated successfully, but these errors were encountered:
my setting work just fine. the issue is a minor and probably related to gerrit rest api client. If you cherry-pick a change in gerrit UI it also copies change-id from original commit. It is legit as both changes are in different branches, but looks like api client cannot handle that case. There is a workaround in gerrit: during cherry-pick remove change id and let generate new one
Using new option in Gerrit global.commentOnlyChangedLines=true
It fails if the commit is a cherry-pick.
From log file:
Exception in thread "main" pl.touk.sputnik.connector.gerrit.GerritException: Error when retrieve modified lines
at pl.touk.sputnik.connector.gerrit.GerritCommentFilter.init(GerritCommentFilter.java:51)
at pl.touk.sputnik.connector.gerrit.GerritFacadeBuilder.buildCommentFilter(GerritFacadeBuilder.java:68)
at pl.touk.sputnik.connector.gerrit.GerritFacadeBuilder.build(GerritFacadeBuilder.java:48)
at pl.touk.sputnik.connector.ConnectorFacadeFactory.build(ConnectorFacadeFactory.java:25)
at pl.touk.sputnik.Main.getConnectorFacade(Main.java:48)
at pl.touk.sputnik.Main.main(Main.java:40)
Caused by: com.urswolfer.gerrit.client.rest.http.HttpStatusException: Request not successful. Message: Not Found. Status-Code: 404. Content: Multiple changes found for I9b5bd093c5ae8e22142eb15563e922b0e29b56c3.
The text was updated successfully, but these errors were encountered: