Hi,
I'm trying enable JIRA integration with gerrit but there seems to be some issues which i would like to debug.
I'm using 2.15.x gerrit and have setup development env where i test gerrit release. i have updated there gerrit 2.16.x release to dev environment but i could not get JIRA integration to work.
Updated to 3.0.x release to see if problem is there also and it was. Found out that parsing jira address didn't work when JIRA wasn't configured to root.
i have it review.example.com/jira/. Well later on fix version of the jira-plugin was made and i started testing that.
URL now get parsed correctly and connection works but still state transitions doesn't work or commenting JIRA story so would like debug it.
I haven't made any changes to transition rules or other changes regarding jira-integration.
I have tried based on documentation to enabled debug logs with this command.
ssh -p 29418 review.example.com gerrit logging set-level debug com.googlesource.gerrit.plugins.its.jira.
found from https://gerrit-review.googlesource.com/Documentation/cmd-logging-set-level.html but that didn't give any more logs.
Any ideas how to enable debug logs?
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/32d615df-3bc0-4874-ae72-1e55d5bdddea%40googlegroups.com.
Sent from my iPhoneOn 4 Oct 2019, at 07:23, J-P Kohtala <koht...@gmail.com> wrote:Hi,
I'm trying enable JIRA integration with gerrit but there seems to be some issues which i would like to debug.
Can you please raise an issue with all details to reproduce it to gerritcodereview.com/issues.html?
I have tried based on documentation to enabled debug logs with this command.
ssh -p 29418 review.example.com gerrit logging set-level debug com.googlesource.gerrit.plugins.its.jira.
found from https://gerrit-review.googlesource.com/Documentation/cmd-logging-set-level.html but that didn't give any more logs.It well maybe that the plugin doesn’t emit more logs
if (issueExists(server, issueKey)) {
log.debug("Trying to add comment for issue {}", issueKey);
apiBuilder
.getIssue(server)
.doPost(issueKey + "/comment", gson.toJson(new JiraComment(comment)), HTTP_CREATED);
log.debug("Comment added to issue {}", issueKey);
} else {
log.error("Issue {} does not exist or no access permission", issueKey);
}| |
Hi,
I'm trying enable JIRA integration with gerrit but there seems to be some issues which i would like to debug.
I'm using 2.15.x gerrit and have setup development env where i test gerrit release. i have updated there gerrit 2.16.x release to dev environment but i could not get JIRA integration to work.
Updated to 3.0.x release to see if problem is there also and it was. Found out that parsing jira address didn't work when JIRA wasn't configured to root.
i have it review.example.com/jira/. Well later on fix version of the jira-plugin was made and i started testing that.
URL now get parsed correctly and connection works but still state transitions doesn't work or commenting JIRA story so would like debug it.
I haven't made any changes to transition rules or other changes regarding jira-integration.
I have tried based on documentation to enabled debug logs with this command.
ssh -p 29418 review.example.com gerrit logging set-level debug com.googlesource.gerrit.plugins.its.jira.
found from https://gerrit-review.googlesource.com/Documentation/cmd-logging-set-level.html but that didn't give any more logs.
Any ideas how to enable debug logs?
--
On Fri, 4 Oct 2019, 15:23 J-P Kohtala, <koht...@gmail.com> wrote:Hi,
I'm trying enable JIRA integration with gerrit but there seems to be some issues which i would like to debug.
I'm using 2.15.x gerrit and have setup development env where i test gerrit release. i have updated there gerrit 2.16.x release to dev environment but i could not get JIRA integration to work.
Updated to 3.0.x release to see if problem is there also and it was. Found out that parsing jira address didn't work when JIRA wasn't configured to root.
i have it review.example.com/jira/. Well later on fix version of the jira-plugin was made and i started testing that.
URL now get parsed correctly and connection works but still state transitions doesn't work or commenting JIRA story so would like debug it.
I haven't made any changes to transition rules or other changes regarding jira-integration.
I have tried based on documentation to enabled debug logs with this command.
ssh -p 29418 review.example.com gerrit logging set-level debug com.googlesource.gerrit.plugins.its.jira.Try it with the full name of the class that you want to log.Also, you can use the log list command to make sure that the required level was set.If I remember correctly, the list command will not include the class until it has been invoked at least once.
Sent from my iPhoneOn 4 Oct 2019, at 07:23, J-P Kohtala <koht...@gmail.com> wrote:Hi,
I'm trying enable JIRA integration with gerrit but there seems to be some issues which i would like to debug.
I'm using 2.15.x gerrit and have setup development env where i test gerrit release. i have updated there gerrit 2.16.x release to dev environment but i could not get JIRA integration to work.
Updated to 3.0.x release to see if problem is there also and it was. Found out that parsing jira address didn't work when JIRA wasn't configured to root.
i have it review.example.com/jira/. Well later on fix version of the jira-plugin was made and i started testing that.
URL now get parsed correctly and connection works but still state transitions doesn't work or commenting JIRA story so would like debug it.
I haven't made any changes to transition rules or other changes regarding jira-integration.Can you please raise an issue with all details to reproduce it to gerritcodereview.com/issues.html?