[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Tomas Bjerre closed an issue as Fixed Jenkins / JENKINS-37196 DSL for Violation Comments to GitHub Plugin Change By: Tomas Bjerre Status: Open Closed Resolution: Fixed Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Tomas Bjerre commented on JENKINS-37196 Re: DSL for Violation Comments to GitHub Plugin The wiki is a bit slow. But 1.14 is in the update site: http://mirror.xmission.com/jenkins/updates/current/update-center.json Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Giriraj Gujar commented on JENKINS-37196 Re: DSL for Violation Comments to GitHub Plugin Hi Tomas, Thank you so much. However I don't see it here: https://wiki.jenkins-ci.org/display/JENKINS/Violation+Comments+to+GitHub+Plugin It is still showing "Latest Release" as 1.12 only? Does it usually takes time to update on wiki? Thanks, Giriraj Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Tomas Bjerre commented on JENKINS-37196 Re: DSL for Violation Comments to GitHub Plugin I just made a new release, changed the DSL a bit. Use the examples from the README at: https://github.com/jenkinsci/violation-comments-to-github-plugin Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Tomas Bjerre commented on JENKINS-37196 Re: DSL for Violation Comments to GitHub Plugin I just made a release, will be in the update site within a few hours. The DSL is now: violationsToGitHubRecorder { createSingleFileComments(boolean value) createCommentWithAllSingleFileComments(boolean value) repositoryName(String value) repositoryOwner(String value) password(String value) username(String value) oAuth2Token(String value) pullRequestId(String value) gitHubUrl(String value) commentOnlyChangedContent(boolean value) violationConfigs { violationConfig { reporter(String value) pattern(String value) } } usernamePasswordCredentialsId(String value) useOAuth2Token(boolean value) useUsernamePasswordCredentials(boolean value) useUsernamePassword(boolean value) } Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Giriraj Gujar commented on JENKINS-37196 Re: DSL for Violation Comments to GitHub Plugin Basically, the problem I am facing, How to use Java class in a stand alone groovy script. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Giriraj Gujar commented on JENKINS-37196 Re: DSL for Violation Comments to GitHub Plugin Sure Tomas for the hint. I will also see what I can do. Let me know if you find out anything? will be huge favor. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Tomas Bjerre commented on JENKINS-37196 Re: DSL for Violation Comments to GitHub Plugin I was fiddling with this a bit but did not manage to do what you want. I found this commit: https://github.com/jenkinsci/ghprb-plugin/commit/882bbd79f73e2099c7c1125ce5994d0952cf4464 I think something like that is needed in this plugin to enable a nice DSL here. I may have time later today to look at it. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Giriraj Gujar commented on JENKINS-37196 Re: DSL for Violation Comments to GitHub Plugin Hi Tomas, Let me know if you have any suggestions. It will be huge help. Thanks, Giriraj Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Giriraj Gujar edited a comment on JENKINS-37196 Re: DSL for Violation Comments to GitHub Plugin Thanks Tomas for your reply once again. I tried adding at the top of my project and got following error:* ##*[mvn-dsl-giri] $ /bin/bash /tmp/hudson165362560657593151.shProcessing DSL script maven_pull_request_seed.groovyERROR: startup failed:workspace:/maven_pull_request_seed.groovy: 1: unable to resolve class org.jenkinsci.plugins.jvctg.config.ViolationConfig @ line 1, column 1. import org.jenkinsci.plugins.jvctg.config.ViolationConfig; ^workspace:/maven_pull_request_seed.groovy: 2: unable to resolve class se.bjurr.violations.lib.reports.Reporter @ line 2, column 1. import se.bjurr.violations.lib.reports.Reporter; ^2 errors* ##*So, Do I need to make this as Java programme? Like create pom etc or Is there a shorter way? How can I overcome from it? * I am also attaching my groovy file so you can have a look. * Please note, that's the only file I have in my DSL. Thanks, Giriraj Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Giriraj Gujar edited a comment on JENKINS-37196 Re: DSL for Violation Comments to GitHub Plugin Thanks Tomas for your reply once again. I tried adding at the top of my project and got following error:* ##*[mvn-dsl-giri] $ /bin/bash /tmp/hudson165362560657593151.shProcessing DSL script maven_pull_request_seed.groovyERROR: startup failed:workspace:/maven_pull_request_seed.groovy: 1: unable to resolve class org.jenkinsci.plugins.jvctg.config.ViolationConfig @ line 1, column 1. import org.jenkinsci.plugins.jvctg.config.ViolationConfig; ^workspace:/maven_pull_request_seed.groovy: 2: unable to resolve class se.bjurr.violations.lib.reports.Reporter @ line 2, column 1. import se.bjurr.violations.lib.reports.Reporter; ^2 errors*##*So, Do I need to make this as Java programme? Like create pom etc or Is there a shorter way? How can I overcome from it? * I am also attaching my groovy file so you can have a look. * Please note, that's the only file I have in my DSL. Thanks, Giriraj Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Giriraj Gujar edited a comment on JENKINS-37196 Re: DSL for Violation Comments to GitHub Plugin Thanks Tomas for your reply once again. I tried adding at the top of my project and got following error:* ##*[mvn-dsl-giri] $ /bin/bash /tmp/hudson165362560657593151.shProcessing DSL script maven_pull_request_seed.groovyERROR: startup failed:workspace:/maven_pull_request_seed.groovy: 1: unable to resolve class org.jenkinsci.plugins.jvctg.config.ViolationConfig @ line 1, column 1. import org.jenkinsci.plugins.jvctg.config.ViolationConfig; ^workspace:/maven_pull_request_seed.groovy: 2: unable to resolve class se.bjurr.violations.lib.reports.Reporter @ line 2, column 1. import se.bjurr.violations.lib.reports.Reporter; ^2 errors* ##*So, Do I need to make this as Java programme? Like create pom etc or Is there a shorter way? How can I overcome from it? * I am also attaching my groovy file so you can have a look. * Please note, that's the only file I have in my DSL. Thanks, Giriraj Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Giriraj Gujar edited a comment on JENKINS-37196 Re: DSL for Violation Comments to GitHub Plugin Thanks Tomas for your reply once again. I tried adding at the top of my project and got following error:* ##*[mvn-dsl-giri] $ /bin/bash /tmp/hudson165362560657593151.shProcessing DSL script maven_pull_request_seed.groovyERROR: startup failed:workspace:/maven_pull_request_seed.groovy: 1: unable to resolve class org.jenkinsci.plugins.jvctg.config.ViolationConfig @ line 1, column 1. import org.jenkinsci.plugins.jvctg.config.ViolationConfig; ^workspace:/maven_pull_request_seed.groovy: 2: unable to resolve class se.bjurr.violations.lib.reports.Reporter @ line 2, column 1. import se.bjurr.violations.lib.reports.Reporter; ^2 errors* ##*So, Do I need to make this as Java programme? Like crease create pom etc or Is there a shorter way ? How can I overcome from it? I am also attaching my groovy file so you can have a look. Please note, that's the only file I have in my DSL. Thanks, Giriraj Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Giriraj Gujar commented on JENKINS-37196 Re: DSL for Violation Comments to GitHub Plugin Thanks Tomas for your reply once again. I tried adding at the top of my project and got following error: ##* [mvn-dsl-giri] $ /bin/bash /tmp/hudson165362560657593151.sh Processing DSL script maven_pull_request_seed.groovy ERROR: startup failed: workspace:/maven_pull_request_seed.groovy: 1: unable to resolve class org.jenkinsci.plugins.jvctg.config.ViolationConfig @ line 1, column 1. import org.jenkinsci.plugins.jvctg.config.ViolationConfig; ^ workspace:/maven_pull_request_seed.groovy: 2: unable to resolve class se.bjurr.violations.lib.reports.Reporter @ line 2, column 1. import se.bjurr.violations.lib.reports.Reporter; ^ 2 errors ##* So, Do I need to make this as Java programme? Like crease pom etc? How can I overcome from it? I am also attaching my groovy file so you can have a look. Please note, that's the only file I have in my DSL. Thanks, Giriraj Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Giriraj Gujar updated an issue Jenkins / JENKINS-37196 DSL for Violation Comments to GitHub Plugin Change By: Giriraj Gujar Attachment: maven_pull_request_seed.groovy Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Giriraj Gujar edited a comment on JENKINS-37196 Re: DSL for Violation Comments to GitHub Plugin Hi Tomas, Thank you so much for replying. I tried what you suggested and put following configuration in my groovy file:** violationsToGitHubRecorder { useUsernamePasswordCredentials(true) usernamePasswordCredentialsId('false') useOAuth2Token(false) useUsernamePassword(false) createSingleFileComments(true) createCommentWithAllSingleFileComments(false) repositoryName(repoName) repositoryOwner('jen1') password('') username('') oAuth2Token('') pullRequestId('${ghprbPullId}') gitHubUrl('https://github.inmobi.com/api/v3') commentOnlyChangedContent(true) * violationConfigs: [ new ViolationConfig(Reporter.FINDBUGS, ".*/target/.*findbugsXml.xml\$") ] * }**However when I ran this configuration from the jenkins build then I got following error:**[mvn-dsl-giri] $ /bin/bash /tmp/hudson5411659904445564162.shProcessing DSL script maven_pull_request_seed.groovyERROR: startup failed:workspace:/maven_pull_request_seed.groovy: 91: unable to resolve class ViolationConfig @ line 91, column 20. new ViolationConfig(Reporter.FINDBUGS, ".*/target/.*findbugsXml.xml\$") ^1 error**Is there a typo we are doing?*Please note, I am running jenkins version 2.16 and "Violation Comments to GitHub Plugin version as 1.12".*I've also attached the screenshot of the error for clarity. Let me know your feedback.And This is huge help.Thanks,Giriraj Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Tomas Bjerre commented on JENKINS-37196 Re: DSL for Violation Comments to GitHub Plugin Also add: import org.jenkinsci.plugins.jvctg.config.ViolationConfig; import se.bjurr.violations.lib.reports.Reporter; There is an example in the readme at: https://github.com/jenkinsci/violation-comments-to-github-plugin Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Giriraj Gujar edited a comment on JENKINS-37196 Re: DSL for Violation Comments to GitHub Plugin Hi Tomas, Thank you so much for replying. I tried what you suggested and put following configuration in my groovy file:** violationsToGitHubRecorder { useUsernamePasswordCredentials(true) usernamePasswordCredentialsId('false') useOAuth2Token(false) useUsernamePassword(false) createSingleFileComments(true) createCommentWithAllSingleFileComments(false) repositoryName(repoName) repositoryOwner('jen1') password('') username('') oAuth2Token('') pullRequestId('${ghprbPullId}') gitHubUrl('https://github.inmobi.com/api/v3') commentOnlyChangedContent(true)* violationConfigs: [ new ViolationConfig(Reporter.FINDBUGS, ".*/target/.*findbugsXml.xml\$") ]* }**However when I ran this configuration from the jenkins build then I got following error:**[mvn-dsl-giri] $ /bin/bash /tmp/hudson5411659904445564162.shProcessing DSL script maven_pull_request_seed.groovyERROR: startup failed:workspace:/maven_pull_request_seed.groovy: 91: unable to resolve class ViolationConfig @ line 91, column 20. new ViolationConfig(Reporter.FINDBUGS, ".*/target/.*findbugsXml.xml\$") ^1 error**Is there a typo we are doing?*Please note, I am running jenkins version 2.16 and "Violation Comments to GitHub Plugin version as 1.12".* I've also attached the screenshot of the error for clarity. Let me know your feedback.And This is huge help.Thanks,Giriraj Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Giriraj Gujar updated an issue Jenkins / JENKINS-37196 DSL for Violation Comments to GitHub Plugin Change By: Giriraj Gujar Attachment: jenkins.png Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Giriraj Gujar commented on JENKINS-37196 Re: DSL for Violation Comments to GitHub Plugin Hi Tomas, Thank you so much for replying. I tried what you suggested and put following configuration in my groovy file: violationsToGitHubRecorder { useUsernamePasswordCredentials(true) usernamePasswordCredentialsId('false') useOAuth2Token(false) useUsernamePassword(false) createSingleFileComments(true) createCommentWithAllSingleFileComments(false) repositoryName(repoName) repositoryOwner('jen1') password('') username('') oAuth2Token('') pullRequestId('$ {ghprbPullId} ') gitHubUrl('https://github.inmobi.com/api/v3') commentOnlyChangedContent(true) violationConfigs: [ new ViolationConfig(Reporter.FINDBUGS, ".*/target/.*findbugsXml.xml\$") ]* } However when I ran this configuration from the jenkins build then I got following error: [mvn-dsl-giri] $ /bin/bash /tmp/hudson5411659904445564162.sh Processing DSL script maven_pull_request_seed.groovy ERROR: startup failed: workspace:/maven_pull_request_seed.groovy: 91: unable to resolve class ViolationConfig @ line 91, column 20. new ViolationConfig(Reporter.FINDBUGS, ".*/target/.*findbugsXml.xml\$") ^ 1 error Is there a typo we are doing? Please note, I am running jenkins version 2.16 and "Violation Comments to GitHub Plugin version as 1.12". Let me know your feedback. And This is huge help. Thanks, Giriraj Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Tomas Bjerre commented on JENKINS-37196 Re: DSL for Violation Comments to GitHub Plugin You need to add violationConfigs like this: violationsToGitHubRecorder { createSingleFileComments(true) createCommentWithAllSingleFileComments(false) repositoryName(repoName) repositoryOwner(‘jen1') password('') username('') oAuth2Token('') pullRequestId('$ {ghprbPullId} ') gitHubUrl('https://github.inmobi.com/api/v3') commentOnlyChangedContent(true) usernamePasswordCredentialsId('false') useOAuth2Token(false) useUsernamePassword(false) useUsernamePasswordCredentials(true), violationConfigs: [ new ViolationConfig(Reporter.FINDBUGS, ".*/findbugs.*\\.xml\$") ] Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-37196) DSL for Violation Comments to GitHub Plugin
Title: Message Title Giriraj Gujar created an issue Jenkins / JENKINS-37196 DSL for Violation Comments to GitHub Plugin Issue Type: Bug Assignee: Tomas Bjerre Attachments: violation.png Components: violation-comments-to-github-plugin Created: 2016/Aug/05 12:53 AM Priority: Minor Reporter: Giriraj Gujar Hi Tomas, I hope you are doing great. I needed small info, basically it is the DSL code for "Violation Comments to GitHub Plugin“ Actually I have most of the below code: ## violationsToGitHubRecorder { createSingleFileComments(true) createCommentWithAllSingleFileComments(false) repositoryName(repoName) repositoryOwner(‘jen1') password('') username('') oAuth2Token('') pullRequestId('$ {ghprbPullId} ') gitHubUrl('https://github.inmobi.com/api/v3') commentOnlyChangedContent(true) usernamePasswordCredentialsId('false') useOAuth2Token(false) useUsernamePassword(false) useUsernamePasswordCredentials(true) ### However the problem is how to to add “pattern” part to it? so it get automatically comes up? If you see the screen shot, then there is nothing coming under pattern block? Let me know if you have any inputs to share? Thanks, Giiraj