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

All CVS modules are added as child directories of the job's working directory when specifing a relative path for an ANT build file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • cvs-plugin
    • None
    • Platform: All, OS: Windows XP

      I've created a new Hudson job in 1.220 and added 2 CVS modules to it and I've
      specified an ANT-based build with a specific, relative path for the ANT file:

      CVS modules are: com.profidatalab.nightbird com.xnife.build

      The ANT build file is specified as: com.xnife.build/build.xml

      When I execute the build, it fails with the following console output:

      started
      [workspace] $ cvs -Q -z3 -
      d :pserver:automatedtestuser:automatedtestpassword@cvs:/cvsrepos co -P -D
      "Tuesday, June 3, 2008 10:16:44 AM UTC" com.profidatalab.nightbird
      com.xnife.build
      cvs checkout: dying gasps from cvs unexpected
      $ no changes detected
      [com.xnife.build] $ cmd.exe /C '"ant.bat -file build.xml && exit %%ERRORLEVEL%
      %"'
      The directory name is invalid
      FATAL: command execution failed.Maybe you need to configure the job to choose
      one of your Ant installations?
      java.io.IOException: Cannot run program "cmd.exe" (in directory "C:\Documents
      and Settings\dis\.hudson\jobs\xnife\workspace\com.profidatalab.nightbird
      \com.xnife.build"): CreateProcess error=267, The directory name is invalid
      at java.lang.ProcessBuilder.start(Unknown Source)
      at hudson.Proc$LocalProc.<init>(Proc.java:104)
      at hudson.Proc$LocalProc.<init>(Proc.java:82)
      at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:291)
      at hudson.Launcher$LocalLauncher.launch(Launcher.java:282)
      at hudson.Launcher.launch(Launcher.java:120)
      at hudson.Launcher.launch(Launcher.java:72)
      at hudson.tasks.Ant.perform(Ant.java:179)
      at hudson.model.Build$RunnerImpl.build(Build.java:130)
      at hudson.model.Build$RunnerImpl.doRun(Build.java:105)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:231)
      at hudson.model.Run.run(Run.java:762)
      at hudson.model.Build.run(Build.java:85)
      at hudson.model.ResourceController.execute(ResourceController.java:70)
      at hudson.model.Executor.run(Executor.java:82)
      Caused by: java.io.IOException: CreateProcess error=267, The directory name is
      invalid
      at java.lang.ProcessImpl.create(Native Method)
      at java.lang.ProcessImpl.<init>(Unknown Source)
      at java.lang.ProcessImpl.start(Unknown Source)
      ... 15 more
      finished: FAILURE

      It has failed to start the cmd.exe program in the following directory: C:
      \Documents and Settings\dis\.hudson\jobs\xnife\workspace
      \com.profidatalab.nightbird\com.xnife.build

      This directory is nonsense. Rather than finding the ANT build file relative to
      the job's working directory, Hudson has added BOTH CVS modules as
      subdirectories.

      I require 2 modules because one of them contains generic build scripts that I
      will require for pre and post build steps and the other is specific to what's
      being built.

      I really like what I've seen and read about Hudson, but this seems a very basic
      bug. Is there a workaround for this problem?

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

              Created:
              Updated:
              Resolved: