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

change of checkstyle-result.xml folder by changing <outputFile> parameter leading to zero warnings in trend graph

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: checkstyle-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.432 / checkstyle 3.14
    • Similar Issues:

      Description

      I am running Jenkins 1.432 with checkstyl 3.14. The default job with hardcoded <sourceDirectory> and <configLocation> creates the checkstyle-result.xml inside the <job/target/> folder. But I need to allow users to access the result xml file through HTTP access. For this, I have redirected the <outputFile> into <job/workspace/target> folder. But in this case, the result xml is correctly getting generated but neither the trend graphs nor the usual checkstyle warnings section shows the checkstyle warnings. Do i need to configure anywhere to direct the trend graph to look into this particular folder for the result xml file? Kindly help to understand the configuration required here to make the trend graphs read the result xml from <job/workspace/target> folder.

        Attachments

          Activity

          Hide
          harish_balan Harish Balan added a comment -

          Thanks Ulli. I tried out in the freestyle project and it seems to work fine. Thanks again.

          Show
          harish_balan Harish Balan added a comment - Thanks Ulli. I tried out in the freestyle project and it seems to work fine. Thanks again.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/hudson/plugins/analysis/core/FilesParser.java
          http://jenkins-ci.org/commit/analysis-core-plugin/7e79c797876da4c70d75ba913f7506718a33e13a
          Log:
          JENKINS-16250 Introduced new constructor to parse a single file only.

          Compare: https://github.com/jenkinsci/analysis-core-plugin/compare/1081a0146c70...7e79c797876d


          You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
          For more options, visit https://groups.google.com/groups/opt_out.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/analysis/core/FilesParser.java http://jenkins-ci.org/commit/analysis-core-plugin/7e79c797876da4c70d75ba913f7506718a33e13a Log: JENKINS-16250 Introduced new constructor to parse a single file only. Compare: https://github.com/jenkinsci/analysis-core-plugin/compare/1081a0146c70...7e79c797876d – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out .
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          pom.xml
          src/main/java/hudson/plugins/checkstyle/CheckStyleReporter.java
          http://jenkins-ci.org/commit/checkstyle-plugin/e79892bdb3873059ab04ad1e0569311262353f4c
          Log:
          [FIXED JENKINS-16250] Use outputFile configuration option if available.


          You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
          For more options, visit https://groups.google.com/groups/opt_out.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: pom.xml src/main/java/hudson/plugins/checkstyle/CheckStyleReporter.java http://jenkins-ci.org/commit/checkstyle-plugin/e79892bdb3873059ab04ad1e0569311262353f4c Log: [FIXED JENKINS-16250] Use outputFile configuration option if available. – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out .
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          plugin/clean.sh
          plugin/clean.sh
          plugin/debug.sh
          plugin/debug.sh
          plugin/german.sh
          plugin/german.sh
          plugin/go.sh
          plugin/go.sh
          plugin/pom.xml
          plugin/src/main/java/hudson/plugins/findbugs/FindBugsReporter.java
          http://jenkins-ci.org/commit/findbugs-plugin/f31490414234f4dd64368b512fc29e521f548dfd
          Log:
          [FIXED JENKINS-16250] Use outputPath configuration option if available.


          You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
          For more options, visit https://groups.google.com/groups/opt_out.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: plugin/clean.sh plugin/clean.sh plugin/debug.sh plugin/debug.sh plugin/german.sh plugin/german.sh plugin/go.sh plugin/go.sh plugin/pom.xml plugin/src/main/java/hudson/plugins/findbugs/FindBugsReporter.java http://jenkins-ci.org/commit/findbugs-plugin/f31490414234f4dd64368b512fc29e521f548dfd Log: [FIXED JENKINS-16250] Use outputPath configuration option if available. – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out .
          Hide
          drulli Ulli Hafner added a comment -

          Integrated in Jenkins Analysis Plug-ins (Compile) #609
          JENKINS-16250 Introduced new constructor to parse a single file only. (Revision 7e79c797876da4c70d75ba913f7506718a33e13a)

          Result = SUCCESS

          Show
          drulli Ulli Hafner added a comment - Integrated in Jenkins Analysis Plug-ins (Compile) #609 JENKINS-16250 Introduced new constructor to parse a single file only. (Revision 7e79c797876da4c70d75ba913f7506718a33e13a) Result = SUCCESS

            People

            • Assignee:
              drulli Ulli Hafner
              Reporter:
              harish_balan Harish Balan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: