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

Add columns to the main view that show the number of warnings

      Jenkins provides an extension point to add new columns to the list views. The analysis plug-ins should also provide new columns for:

      • number of warnings
      • plug-in status

          [JENKINS-17187] Add columns to the main view that show the number of warnings

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: pom.xml http://jenkins-ci.org/commit/analysis-collector-plugin/3643d1a572f86166d3e2dfc69f21ba57e9ffc9a7 Log: JENKINS-17187 Added a view column that shows # warnings. Compare: https://github.com/jenkinsci/analysis-collector-plugin/compare/a1e2facdd37a...3643d1a572f8

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          plugin/pom.xml
          plugin/src/main/java/hudson/plugins/findbugs/FindBugsColumn.java
          plugin/src/main/resources/hudson/plugins/findbugs/Messages.properties
          plugin/src/main/resources/hudson/plugins/findbugs/Messages_de.properties
          http://jenkins-ci.org/commit/findbugs-plugin/883b81c8c649428ce4b810a64d85ceab727f39a8
          Log:
          JENKINS-17187 Added a view column that shows # warnings.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: plugin/pom.xml plugin/src/main/java/hudson/plugins/findbugs/FindBugsColumn.java plugin/src/main/resources/hudson/plugins/findbugs/Messages.properties plugin/src/main/resources/hudson/plugins/findbugs/Messages_de.properties http://jenkins-ci.org/commit/findbugs-plugin/883b81c8c649428ce4b810a64d85ceab727f39a8 Log: JENKINS-17187 Added a view column that shows # warnings.

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          pom.xml
          src/main/java/hudson/plugins/pmd/PmdColumn.java
          src/main/resources/hudson/plugins/pmd/Messages.properties
          src/main/resources/hudson/plugins/pmd/Messages_de.properties
          http://jenkins-ci.org/commit/pmd-plugin/e881fef802437c61aaa53ef9b7a06b87fb3680cc
          Log:
          JENKINS-17187 Added a view column that shows # warnings.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: pom.xml src/main/java/hudson/plugins/pmd/PmdColumn.java src/main/resources/hudson/plugins/pmd/Messages.properties src/main/resources/hudson/plugins/pmd/Messages_de.properties http://jenkins-ci.org/commit/pmd-plugin/e881fef802437c61aaa53ef9b7a06b87fb3680cc Log: JENKINS-17187 Added a view column that shows # warnings.

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          .gitignore
          pom.xml
          src/main/java/hudson/plugins/warnings/WarningsColumn.java
          src/main/resources/hudson/plugins/warnings/Messages.properties
          src/main/resources/hudson/plugins/warnings/Messages_de.properties
          http://jenkins-ci.org/commit/warnings-plugin/c9f187cdb512097eb8716ff57fa75dd7058811d2
          Log:
          JENKINS-17187 Added a view column that shows # warnings.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: .gitignore pom.xml src/main/java/hudson/plugins/warnings/WarningsColumn.java src/main/resources/hudson/plugins/warnings/Messages.properties src/main/resources/hudson/plugins/warnings/Messages_de.properties http://jenkins-ci.org/commit/warnings-plugin/c9f187cdb512097eb8716ff57fa75dd7058811d2 Log: JENKINS-17187 Added a view column that shows # warnings.

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          pom.xml
          src/main/java/hudson/plugins/tasks/TasksColumn.java
          src/main/resources/hudson/plugins/tasks/Messages.properties
          src/main/resources/hudson/plugins/tasks/Messages_de.properties
          http://jenkins-ci.org/commit/tasks-plugin/cf13d0d3ef9cb16f75a4524c2c3e559fd02ca1e1
          Log:
          JENKINS-17187 Added a view column that shows # warnings.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: pom.xml src/main/java/hudson/plugins/tasks/TasksColumn.java src/main/resources/hudson/plugins/tasks/Messages.properties src/main/resources/hudson/plugins/tasks/Messages_de.properties http://jenkins-ci.org/commit/tasks-plugin/cf13d0d3ef9cb16f75a4524c2c3e559fd02ca1e1 Log: JENKINS-17187 Added a view column that shows # warnings.

          Ulli Hafner added a comment -

          Integrated in Jenkins Analysis Plug-ins (Compile) #609
          JENKINS-17187 Added base class for a #warnings view column. (Revision e546869b89ce27bfd2e4e9695fdd88731e4d41c3)

          Result = SUCCESS

          Ulli Hafner added a comment - Integrated in Jenkins Analysis Plug-ins (Compile) #609 JENKINS-17187 Added base class for a #warnings view column. (Revision e546869b89ce27bfd2e4e9695fdd88731e4d41c3) Result = SUCCESS

          Now that this is implemented (thanks!), would you mind to briefly describe how this works? In particular, is it possible now that only one column is added to a view, and multiple jobs in the view can show output from different analysis plugin in the same column (but different rows)? For example, suppose I have one job that publishes FindBugs results, and one job that publishes Android Lint results. Both jobs are shown in different rows of the same view. Can I now add a single column which would show the FindBugs warnings for the FindBugs job, and the Lint warnings for the Android Lint job? Or would I have to add two separate columns, one for each?

          Sebastian Schuberth added a comment - Now that this is implemented (thanks!), would you mind to briefly describe how this works? In particular, is it possible now that only one column is added to a view, and multiple jobs in the view can show output from different analysis plugin in the same column (but different rows)? For example, suppose I have one job that publishes FindBugs results, and one job that publishes Android Lint results. Both jobs are shown in different rows of the same view. Can I now add a single column which would show the FindBugs warnings for the FindBugs job, and the Lint warnings for the Android Lint job? Or would I have to add two separate columns, one for each?

          Ulli Hafner added a comment -

          I thought the functionality is quite self explanatory. In order to show the FindBugs results in a column you need to add the FindBugs column. In order to show the results of all tools in one column you need to install and activate the analysis-collector plug-in. Then you need to add the "Number of warnings" column.

          Ulli Hafner added a comment - I thought the functionality is quite self explanatory. In order to show the FindBugs results in a column you need to add the FindBugs column. In order to show the results of all tools in one column you need to install and activate the analysis-collector plug-in. Then you need to add the "Number of warnings" column.

          Thanks. I did this now, but when adding the "Number of warnings" column to a view I see only a checkbox labeled "FindBugs warnings" below the column description. I'm using a self--compiled version of the Android Lint plugin on my Jenkins which has view column support merged [1], so I was expecting Android Lint to also show up as a checkbox to the "Number of warnings" column provided by the analysis-collector. Any idea why that checkbox does not show up?

          [1] https://github.com/jenkinsci/android-lint-plugin/pull/4

          Sebastian Schuberth added a comment - Thanks. I did this now, but when adding the "Number of warnings" column to a view I see only a checkbox labeled "FindBugs warnings" below the column description. I'm using a self--compiled version of the Android Lint plugin on my Jenkins which has view column support merged [1] , so I was expecting Android Lint to also show up as a checkbox to the "Number of warnings" column provided by the analysis-collector. Any idea why that checkbox does not show up? [1] https://github.com/jenkinsci/android-lint-plugin/pull/4

          Ulli Hafner added a comment -

          The android lint plug-in is not part of the analysis collector plug-in. (See also JENKINS-17168)

          Ulli Hafner added a comment - The android lint plug-in is not part of the analysis collector plug-in. (See also JENKINS-17168 )

            drulli Ulli Hafner
            drulli Ulli Hafner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: