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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • checkstyle-plugin
    • None
    • Jenkins 1.432 / checkstyle 3.14

    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

          harish_balan Harish Balan created issue -
          drulli Ulli Hafner made changes -
          Field Original Value New Value
          Issue Type Task [ 3 ] Bug [ 1 ]
          Priority Critical [ 2 ] Minor [ 4 ]
          drulli Ulli Hafner added a comment - - edited

          Are you using a freestyle or maven project type? In case of a freestyle job: you can simply change the file pattern that the plug-in is looking for using the UI.

          drulli Ulli Hafner added a comment - - edited Are you using a freestyle or maven project type? In case of a freestyle job: you can simply change the file pattern that the plug-in is looking for using the UI.
          harish_balan Harish Balan made changes -
          Assignee Ulli Hafner [ drulli ] Harish Balan [ harish_balan ]
          harish_balan Harish Balan added a comment -

          Hi Ulli,
          Thanks for responding.

          I am using a maven 2/3 project. In that case, can you help me in where i would need to configure that?

          harish_balan Harish Balan added a comment - Hi Ulli, Thanks for responding. I am using a maven 2/3 project. In that case, can you help me in where i would need to configure that?
          harish_balan Harish Balan added a comment -

          i think i had by mistake assigned the issue to myself when i was trying to enter my comments

          harish_balan Harish Balan added a comment - i think i had by mistake assigned the issue to myself when i was trying to enter my comments
          harish_balan Harish Balan made changes -
          Assignee Harish Balan [ harish_balan ] Ulli Hafner [ drulli ]
          drulli Ulli Hafner added a comment -

          You need to switch to a freestyle project until that is fixed.

          drulli Ulli Hafner added a comment - You need to switch to a freestyle project until that is fixed.
          harish_balan Harish Balan added a comment -

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

          harish_balan Harish Balan added a comment - Thanks Ulli. I tried out in the freestyle project and it seems to work fine. Thanks again.

          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.

          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 .

          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.

          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 .
          scm_issue_link SCM/JIRA link daemon made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]

          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.

          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 .
          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

          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
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 147064 ] JNJira + In-Review [ 192215 ]

          People

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

            Dates

              Created:
              Updated:
              Resolved: