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

execute sonar plugin before pmd, checkstyle and findbugs plugin.

    Details

    • Similar Issues:

      Description

      If you want to use the reports from sonar in the pmd, checkstyle or findbugs plugin, it would be better if sonar is running before them...
      thx

        Attachments

          Activity

          Hide
          drulli Ulli Hafner added a comment -

          Added a patch for the descriptor of the SonarPublisher.

          Since your tests are failing on my machine (after checkout) I did not commit that change. (Please also add a dependency to Hudson >= 1.358 in your pom.xml since the ordinal attribute has been improved somewhere in between there)

          Show
          drulli Ulli Hafner added a comment - Added a patch for the descriptor of the SonarPublisher. Since your tests are failing on my machine (after checkout) I did not commit that change. (Please also add a dependency to Hudson >= 1.358 in your pom.xml since the ordinal attribute has been improved somewhere in between there)
          Hide
          drulli Ulli Hafner added a comment - - edited

          Is the Sonar plugin still maintained? Would be nice if you could apply the patch!

          Show
          drulli Ulli Hafner added a comment - - edited Is the Sonar plugin still maintained? Would be nice if you could apply the patch!
          Hide
          sbrandhof sbrandhof added a comment -

          If I correctly understand the patch, the only change is to add the ordinal parameter ?

          @Extension(ordinal = 1000)
             public static final class DescriptorImpl extends BuildStepDescriptor<Publisher> {
          

          What are possible side-effects ?

          Show
          sbrandhof sbrandhof added a comment - If I correctly understand the patch, the only change is to add the ordinal parameter ? @Extension(ordinal = 1000) public static final class DescriptorImpl extends BuildStepDescriptor<Publisher> { What are possible side-effects ?
          Hide
          drulli Ulli Hafner added a comment - - edited

          As far as I know: no side effects. The ordinal is used to sort the publishers. I already use that feature for another publisher that scans the results of findbugs, etc.

          Show
          drulli Ulli Hafner added a comment - - edited As far as I know: no side effects. The ordinal is used to sort the publishers. I already use that feature for another publisher that scans the results of findbugs, etc.
          Hide
          sbrandhof sbrandhof added a comment -

          Do you know if a list of currently used ordinals is documented somewhere ?

          The issue has been created in Sonar JIRA : http://jira.codehaus.org/browse/SONARPLUGINS-847

          Show
          sbrandhof sbrandhof added a comment - Do you know if a list of currently used ordinals is documented somewhere ? The issue has been created in Sonar JIRA : http://jira.codehaus.org/browse/SONARPLUGINS-847
          Hide
          sbrandhof sbrandhof added a comment -

          I forgot to answer your question : this plugin is maintained ! The version 1.6 will be released soon.
          See http://jira.codehaus.org/browse/SONARPLUGINS/fixforversion/16345

          Show
          sbrandhof sbrandhof added a comment - I forgot to answer your question : this plugin is maintained ! The version 1.6 will be released soon. See http://jira.codehaus.org/browse/SONARPLUGINS/fixforversion/16345
          Hide
          godin godin added a comment -

          Done in 1.6

          Show
          godin godin added a comment - Done in 1.6

            People

            • Assignee:
              godin godin
              Reporter:
              stefanhtwaa StefanHtwAA
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: