Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37196

DSL for Violation Comments to GitHub Plugin

XMLWordPrintable

      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

        1. jenkins.png
          55 kB
          Giriraj Gujar
        2. maven_pull_request_seed.groovy
          3 kB
          Giriraj Gujar
        3. violation.png
          74 kB
          Giriraj Gujar

            tomasbjerre Tomas Bjerre
            giriraj_2k5 Giriraj Gujar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: