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

Findbugs throws FileNotFoundException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: findbugs-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      [FINDBUGS]Can't copy source file: source=biz/amon/job/api/model/dataobject/AmonBuild.java, destination=b6987d4f.tmp
      hudson.util.IOException2: Failed to copy biz/amon/job/api/model/dataobject/AmonBuild.java to /home/hudson/.jenkins/jobs/333579_UT_modules.amon.biz/modules/shared$modules.amon.biz/builds/2013-12-18_22-42-35/workspace-files/b6987d4f.tmp
      at hudson.FilePath.copyTo(FilePath.java:1686)
      at hudson.plugins.analysis.core.HealthAwareReporter.copyFilesWithAnnotationsToBuildFolder(HealthAwareReporter.java:463)
      at hudson.plugins.analysis.core.HealthAwareReporter.postExecute(HealthAwareReporter.java:340)
      at hudson.maven.Maven2Builder.postExecute(Maven2Builder.java:157)

        Attachments

          Activity

          Hide
          drulli Ulli Hafner added a comment -

          If the file is not there then it is clear why the file could not be copied... In the original report the file should be present in the workspace.

          So what is your expectation? Currently it is just a log message, should it be suppressed?

          Show
          drulli Ulli Hafner added a comment - If the file is not there then it is clear why the file could not be copied... In the original report the file should be present in the workspace. So what is your expectation? Currently it is just a log message, should it be suppressed?
          Hide
          seanf Sean Flanigan added a comment -

          Well, it's not clear from the message whether it is an error or not, so if it's just a warning, I think it should say so, and omit the scary stack trace. There must be many similar dependency classes, but I only get the message once per build, so I had assumed that it was aborting some further processing.

          But it seems like the plugin should not try to copy a file which doesn't exist. If the file is not part of the project, perhaps it ought not to be mentioned at all. (However, I'm not quite sure what purpose this copying has, so I could well be wrong about that.)

          Show
          seanf Sean Flanigan added a comment - Well, it's not clear from the message whether it is an error or not, so if it's just a warning, I think it should say so, and omit the scary stack trace. There must be many similar dependency classes, but I only get the message once per build, so I had assumed that it was aborting some further processing. But it seems like the plugin should not try to copy a file which doesn't exist. If the file is not part of the project, perhaps it ought not to be mentioned at all. (However, I'm not quite sure what purpose this copying has, so I could well be wrong about that.)
          Hide
          drulli Ulli Hafner added a comment -

          I see. Actually it is just a warning, the source files are needed to activate the warnings display of source files. This obviously works only for files contained in the workspace.

          I already removed that warning in freestyle projects, seems that I forgot to apply that fix for maven projects, too.

          Show
          drulli Ulli Hafner added a comment - I see. Actually it is just a warning, the source files are needed to activate the warnings display of source files. This obviously works only for files contained in the workspace. I already removed that warning in freestyle projects, seems that I forgot to apply that fix for maven projects, too.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          analysis-core
          findbugs
          http://jenkins-ci.org/commit/analysis-suite-plugin/1d74b296c2a1b593a5805edd50e98c139e7af344
          Log:
          [FIXED JENKINS-21102] Use same code to copy files from slave to master.
          Moved code to copy files with warnings to build folder to new class Files.
          This class is used by Freestyle and Maven projects to copy affected files.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: analysis-core findbugs http://jenkins-ci.org/commit/analysis-suite-plugin/1d74b296c2a1b593a5805edd50e98c139e7af344 Log: [FIXED JENKINS-21102] Use same code to copy files from slave to master. Moved code to copy files with warnings to build folder to new class Files. This class is used by Freestyle and Maven projects to copy affected files.
          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/HealthAwareRecorder.java
          src/main/java/hudson/plugins/analysis/core/HealthAwareReporter.java
          src/main/java/hudson/plugins/analysis/util/Files.java
          http://jenkins-ci.org/commit/analysis-core-plugin/3e382e24031f245e5868abc48704f9b480c6c30a
          Log:
          [FIXED JENKINS-21102] Use same code to copy files from slave to master.
          Moved code to copy files with warnings to build folder to new class Files.
          This class is used by Freestyle and Maven projects to copy affected files.

          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/HealthAwareRecorder.java src/main/java/hudson/plugins/analysis/core/HealthAwareReporter.java src/main/java/hudson/plugins/analysis/util/Files.java http://jenkins-ci.org/commit/analysis-core-plugin/3e382e24031f245e5868abc48704f9b480c6c30a Log: [FIXED JENKINS-21102] Use same code to copy files from slave to master. Moved code to copy files with warnings to build folder to new class Files. This class is used by Freestyle and Maven projects to copy affected files.

            People

            • Assignee:
              drulli Ulli Hafner
              Reporter:
              raylupus Ray Lupus
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: