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

When checking out a module if a file is specified instead of a dir the cvs operation fails.

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Platform: All, OS: All

      When specifying a list of modules for cvs if one of the modules listed is cvs
      then hudson build fails while trying to compute the changelog. The error is

      ERROR: No such directory exists. Did you specify the correct branch?:
      /net/jwsdp/export5/hudson/workspace/webtier-unit-tests/glassfish/appserv-tests/config.properties
      java.io.IOException: No such directory exists. Did you specify the correct
      branch?:
      /net/jwsdp/export5/hudson/workspace/webtier-unit-tests/glassfish/appserv-tests/config.properties
      at hudson.scm.CVSSCM.archive(CVSSCM.java:209)
      at hudson.scm.CVSSCM.checkout(CVSSCM.java:180)
      at hudson.model.Project.checkout(Project.java:321)
      at hudson.model.Build$1.run(Build.java:325)
      at hudson.model.Run.run(Run.java:515)
      at hudson.model.Build.run(Build.java:307)
      at hudson.model.Executor.run(Executor.java:60)

          [JENKINS-202] When checking out a module if a file is specified instead of a dir the cvs operation fails.

          Jesse Glick added a comment -

          By "if one of the modules listed is cvs" I assume you meant "if one of the
          modules listed is really a file"? But CVS does not let you check out individual
          files; only whole directories.

          If you meant something else, please reopen with a bit more information -
          preferably something we can try to reproduce with.

          Jesse Glick added a comment - By "if one of the modules listed is cvs" I assume you meant "if one of the modules listed is really a file"? But CVS does not let you check out individual files; only whole directories. If you meant something else, please reopen with a bit more information - preferably something we can try to reproduce with.

          Well, apparently cvs is capable of checking out individual files.
          I didn't know that either, but I just tried it myself, and it worked.

          $ cvs -d:pserver:guest@cvs.dev.java.net:/cvs co jaxb2-sources/jaxb-ri/build.xml

          Kohsuke Kawaguchi added a comment - Well, apparently cvs is capable of checking out individual files. I didn't know that either, but I just tried it myself, and it worked. $ cvs -d:pserver:guest@cvs.dev.java.net:/cvs co jaxb2-sources/jaxb-ri/build.xml

          Jesse Glick added a comment -

          Apparently so. This may not work very well if using update, since CVS has no
          means of marking a subdir of a working directory as containing only one
          particular file.

          Jesse Glick added a comment - Apparently so. This may not work very well if using update, since CVS has no means of marking a subdir of a working directory as containing only one particular file.

          Fixed in 1.68.

          Kohsuke Kawaguchi added a comment - Fixed in 1.68.

            Unassigned Unassigned
            mode mode
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: