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

Checkstyle project wont transfer all files from slave to master

      I have Checkstlye static analysis plugin installed for a build of a large php codebase. It executes at the end of the build

      [CHECKSTYLE] Collecting checkstyle analysis files...
      [CHECKSTYLE] Finding all files that match the pattern source/CodeError.xml
      [CHECKSTYLE] Parsing 1 files in WORKSPACE
      [CHECKSTYLE] Successfully parsed file WORKSPACE/source/CodeError.xml of module with 4152 warnings.

      But then not all files are correctly transfered to the master, resulting in blank pages when you want to their content.
      In an example build, in the master folder I get 1378 files with 0 size and only 50 with actual content.

          [JENKINS-15952] Checkstyle project wont transfer all files from slave to master

          Ulli Hafner added a comment -

          Are there exceptions in the log? How is your slave connected to the master? What OS is running on your master and slave? Which Jenkins and plug-in versions are you using? Are the not transferred files random? I.e., does the next build transfer another set of files? Or the same? Is there a specific pattern in the not transferred files? Are these files checked out in your workspace folder?

          Ulli Hafner added a comment - Are there exceptions in the log? How is your slave connected to the master? What OS is running on your master and slave? Which Jenkins and plug-in versions are you using? Are the not transferred files random? I.e., does the next build transfer another set of files? Or the same? Is there a specific pattern in the not transferred files? Are these files checked out in your workspace folder?

          Julia S.Simon added a comment -

          Master is running Debian Lenny, Slaves are running Debian Squeeze, slaves are connected via ssh using user and password.
          I havent't seen exceptions in the log.

          Plugin version: 3.32
          Jenkins version: 1.486

          It seems that always transfers the same 50 files

          Julia S.Simon added a comment - Master is running Debian Lenny, Slaves are running Debian Squeeze, slaves are connected via ssh using user and password. I havent't seen exceptions in the log. Plugin version: 3.32 Jenkins version: 1.486 It seems that always transfers the same 50 files

          Ulli Hafner added a comment -

          Do you have an encoding set in the configuration screen? Seems that JENKINS-16222 is about the same problem.

          Ulli Hafner added a comment - Do you have an encoding set in the configuration screen? Seems that JENKINS-16222 is about the same problem.

          @Ulli: Thanks for the support. We didn't have any encoding set in the config screen. I'm testing that workaround.

          Anyways it does not happen in a "light job" (just static analysis + checkstyle parsing those results) but it happens in all regular jobs (full regression, plots, some small artifacts) so I relate it to the number of files being transferred to the master rather than some setting.

          Rafa de la Torre added a comment - @Ulli: Thanks for the support. We didn't have any encoding set in the config screen. I'm testing that workaround. Anyways it does not happen in a "light job" (just static analysis + checkstyle parsing those results) but it happens in all regular jobs (full regression, plots, some small artifacts) so I relate it to the number of files being transferred to the master rather than some setting.

          Ulli Hafner added a comment -

          The workaround will not help to get the files correctly transmitted It only shows the exception as text in the file to see what actually is going wrong (typically a wrong filename).

          Ulli Hafner added a comment - The workaround will not help to get the files correctly transmitted It only shows the exception as text in the file to see what actually is going wrong (typically a wrong filename).

          Ulli Hafner added a comment -

          Please reopen if the latest fix does not work for you.

          Ulli Hafner added a comment - Please reopen if the latest fix does not work for you.

            drulli Ulli Hafner
            hithwen Julia S.Simon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: