{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/violation-comments-to-stash-plugin/issues/41","repository_url":"https://api.github.com/repos/jenkinsci/violation-comments-to-stash-plugin","labels_url":"https://api.github.com/repos/jenkinsci/violation-comments-to-stash-plugin/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/violation-comments-to-stash-plugin/issues/41/comments","events_url":"https://api.github.com/repos/jenkinsci/violation-comments-to-stash-plugin/issues/41/events","html_url":"https://github.com/jenkinsci/violation-comments-to-stash-plugin/issues/41","id":277666824,"number":41,"title":"Found 0 violations from ViolationConfig","user":{"login":"jansohn","id":7804514,"avatar_url":"https://avatars0.githubusercontent.com/u/7804514?v=4","gravatar_id":"","url":"https://api.github.com/users/jansohn","html_url":"https://github.com/jansohn","followers_url":"https://api.github.com/users/jansohn/followers","following_url":"https://api.github.com/users/jansohn/following{/other_user}","gists_url":"https://api.github.com/users/jansohn/gists{/gist_id}","starred_url":"https://api.github.com/users/jansohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jansohn/subscriptions","organizations_url":"https://api.github.com/users/jansohn/orgs","repos_url":"https://api.github.com/users/jansohn/repos","events_url":"https://api.github.com/users/jansohn/events{/privacy}","received_events_url":"https://api.github.com/users/jansohn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-29T08:26:17Z","updated_at":"2017-11-29T09:25:18Z","closed_at":null,"author_association":"NONE","body":"I'm using your plugin in combination with the `Bitbucket Branch Source Plugin` (https://wiki.jenkins.io/display/JENKINS/Bitbucket+Branch+Source+Plugin) which performs the merge of the PR upon checkout:\r\n\r\n     > C:\\Program Files\\Git\\cmd\\git.exe rev-parse --is-inside-work-tree # timeout=10\r\n    Fetching changes from 2 remote Git repositories\r\n     > C:\\Program Files\\Git\\cmd\\git.exe config remote.origin.url ssh://git@xyz.com:1234/TEST/repo.git # timeout=10\r\n    Fetching without tags\r\n    Fetching upstream changes from ssh://git@xyz.com:1234/TEST/repo.git\r\n     > C:\\Program Files\\Git\\cmd\\git.exe --version # timeout=10\r\n    using GIT_SSH to set credentials SSH key access on Bitbucket server\r\n     > C:\\Program Files\\Git\\cmd\\git.exe fetch --no-tags --progress ssh://git@xyz.com:1234/TEST/repo.git +refs/pull-requests/27/from:refs/remotes/origin/PR-27\r\n     > C:\\Program Files\\Git\\cmd\\git.exe config remote.upstream.url ssh://git@xyz.com:1234/TEST/repo.git # timeout=10\r\n    Fetching without tags\r\n    Fetching upstream changes from ssh://git@xyz.com:1234/TEST/repo.git\r\n    using GIT_SSH to set credentials SSH key access on Bitbucket server\r\n     > C:\\Program Files\\Git\\cmd\\git.exe fetch --no-tags --progress ssh://git@xyz.com:1234/TEST/repo.git +refs/heads/master:refs/remotes/upstream/master\r\n    Merging remotes/upstream/master commit 2256767148ed57775c05af2b7a85d78a5388831f into PR head commit b600ebce173b62c7b68b6c080c5b07be4c039429\r\n     > C:\\Program Files\\Git\\cmd\\git.exe config core.sparsecheckout # timeout=10\r\n     > C:\\Program Files\\Git\\cmd\\git.exe checkout -f b600ebce173b62c7b68b6c080c5b07be4c039429\r\n     > C:\\Program Files\\Git\\cmd\\git.exe merge 2256767148ed57775c05af2b7a85d78a5388831f # timeout=10\r\n     > C:\\Program Files\\Git\\cmd\\git.exe rev-parse \"HEAD^{commit}\" # timeout=10\r\n    Merge succeeded, producing 864bbaa3e1ebd8d88d82b1a0d425f20949c40dc7\r\n    Checking out Revision 864bbaa3e1ebd8d88d82b1a0d425f20949c40dc7 (PR-27)\r\n     > C:\\Program Files\\Git\\cmd\\git.exe config core.sparsecheckout # timeout=10\r\n     > C:\\Program Files\\Git\\cmd\\git.exe checkout -f 864bbaa3e1ebd8d88d82b1a0d425f20949c40dc7\r\n    Commit message: \"Merge commit '2256767148ed57775c05af2b7a85d78a5388831f' into HEAD\"\r\n     > C:\\Program Files\\Git\\cmd\\git.exe rev-list 0bd249813f3a6c3e5a16bbe10325ae3877ac68c3 # timeout=10\r\n\r\nAfterwards I build the project and it produces the `Checkstyle` and `Findbugs` result files in `target\\checkstyle-result.xml` and `target\\findbugsXml.xml`. The PR contains a change which produces a new Findbugs warning which is also displayed in the `findbugsXml.xml` file as a `BugInstance`.\r\n\r\nThe plugin however does not seem to find any violations.\r\n\r\n    ---\r\n    --- Jenkins Violation Comments to Bitbucket Server ---\r\n    ---\r\n    bitbucketServerUrl: https://xyz.com\r\n    projectKey: TEST\r\n    repoSlug: repo\r\n    pullRequestId: 28\r\n    usernamePasswordCredentialsId: true\r\n    username: false\r\n    password: false\r\n    createSingleFileComments: true\r\n    createCommentWithAllSingleFileComments: false\r\n    commentOnlyChangedContent: false\r\n    commentOnlyChangedContentContext: 0\r\n    minSeverity: INFO\r\n    keepOldComments: false\r\n    Checkstyle with pattern .*/checkstyle-result\\.xml$\r\n    Findbugs with pattern .*/findbugsXml\\.xml$\r\n    Using username and password from credentials\r\n    Pull request: 28\r\n    Workspace: D:\\app\\BuildServer\\jenkins-data\\jobs\\Repo\\branches\\PR-28\\workspace\r\n    Found 0 violations from ViolationConfig [pattern=.*/checkstyle-result\\.xml$, reporter=Checkstyle, parser=CHECKSTYLE].\r\n    Found 0 violations from ViolationConfig [pattern=.*/findbugsXml\\.xml$, reporter=Findbugs, parser=FINDBUGS].\r\n    PR: TEST/repo/28 on https://xyz.com\r\n\r\nAny idea what I'm doing wrong? Jenkins is running on Windows btw..."},"comment":{"url":"https://api.github.com/repos/jenkinsci/violation-comments-to-stash-plugin/issues/comments/347801229","html_url":"https://github.com/jenkinsci/violation-comments-to-stash-plugin/issues/41#issuecomment-347801229","issue_url":"https://api.github.com/repos/jenkinsci/violation-comments-to-stash-plugin/issues/41","id":347801229,"user":{"login":"jansohn","id":7804514,"avatar_url":"https://avatars0.githubusercontent.com/u/7804514?v=4","gravatar_id":"","url":"https://api.github.com/users/jansohn","html_url":"https://github.com/jansohn","followers_url":"https://api.github.com/users/jansohn/followers","following_url":"https://api.github.com/users/jansohn/following{/other_user}","gists_url":"https://api.github.com/users/jansohn/gists{/gist_id}","starred_url":"https://api.github.com/users/jansohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jansohn/subscriptions","organizations_url":"https://api.github.com/users/jansohn/orgs","repos_url":"https://api.github.com/users/jansohn/repos","events_url":"https://api.github.com/users/jansohn/events{/privacy}","received_events_url":"https://api.github.com/users/jansohn/received_events","type":"User","site_admin":false},"created_at":"2017-11-29T09:25:18Z","updated_at":"2017-11-29T09:25:18Z","author_association":"NONE","body":"Tried that before, didn't help unfortunately... Is there a way to debug if the regex matches or not?"}}
{"actor":{"display_login":"jansohn"}}