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

option to check file checksums after copying artfacts

    Details

    • Type: New Feature
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: copyartifact-plugin
    • Labels:
      None
    • Environment:
      RHEL 6.3
      os.arch amd64
      os.name Linux
      os.version 2.6.32-279.el6.x86_64
      java.runtime.name OpenJDK Runtime Environment
      java.runtime.version 1.6.0_24-b24

      Jenkins 1.509.4
    • Similar Issues:

      Description

      We have following kind of scenario:

      • Artifacts (text files containing SVN revision info) are transferred to matrix project(s), which are executed on Win7 slave nodes that are virtualmachines.
      • Project read version info files as system variables and uses variable when executing svn checkout from command line

      Problem:
      Occasionally (not always) variable is empty -because file is still empty while it is read, when checking file content afterwards from workspace, content is OK. I presume that root cause is file-system buffer etc.

      Workaround:
      We added step that delays file reading couple of seconds, and problem was gone.

      Suggesting:
      Add file checksum test to copyartifacts plugin, or some other test that verifies that files really are written to file-system and can be used before plugin finishes its task.

      Filing this as a bug, but it might be more improvement idea. Change status how you feel appropriate.

        Attachments

          Activity

          Hide
          ikedam ikedam added a comment -

          I think that's a problem of your system.
          I don't think checksums can always resolve the problem for that case.
          Even though the request is valid, I rather recommend you to fix your system. That would cause other problems.

          Show
          ikedam ikedam added a comment - I think that's a problem of your system. I don't think checksums can always resolve the problem for that case. Even though the request is valid, I rather recommend you to fix your system. That would cause other problems.
          Hide
          swiksted Samu Wikstedt added a comment -

          It is definitely problem in Win7 file system or it's java implementation. Checksum would have probably help, but not necessarily because of the checksum itself, but because checking it causes some delay to project execution...

          Anyway, our system seems to have slowed down enough, so the problem is practically gone for now. And whenever possible, we are moving to using linux instead of windows, and this is strictly Win7 specific problem.

          Show
          swiksted Samu Wikstedt added a comment - It is definitely problem in Win7 file system or it's java implementation. Checksum would have probably help, but not necessarily because of the checksum itself, but because checking it causes some delay to project execution... Anyway, our system seems to have slowed down enough, so the problem is practically gone for now. And whenever possible, we are moving to using linux instead of windows, and this is strictly Win7 specific problem.

            People

            • Assignee:
              Unassigned
              Reporter:
              swiksted Samu Wikstedt
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: