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

No such file or directory error when project contains space (no container is used)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • core
    • None
    • MacOSX 10.6.4 (Snow leopard)

      Hudson is run directly without installing a container (java -jar hudson.war). When the job contains a space (e.g. "My App"), the build cancels with a "No such file or directory" error. The build passes after removing the spaces from the project name (i.e. "My App" => "My_App"). The git plugin is used for version control.

      Here's the log:
      Started by user anonymous
      Checkout:workspace / /Users/vpdn/.hudson/jobs/My App/workspace - hudson.remoting.LocalChannel@673ceab3
      Using strategy: Default
      Last Built Revision: Revision dd4af83976a060b0db41a6ace1662c93578c92b7 (origin/master)
      Checkout:workspace / /Users/vpdn/.hudson/jobs/My App/workspace - hudson.remoting.LocalChannel@673ceab3
      GitAPI created
      Fetching changes from the remote Git repository
      Fetching upstream changes from /Users/vpdn/projects/ISO
      [workspace] $ git fetch -t /Users/vpdn/projects/ISO +refs/heads/:refs/remotes/origin/
      [workspace] $ git ls-tree HEAD
      Seen branch in repository origin/master
      Commencing build of Revision dd4af83976a060b0db41a6ace1662c93578c92b7 (origin/master)
      GitAPI created
      Checking out Revision dd4af83976a060b0db41a6ace1662c93578c92b7 (origin/master)
      [workspace] $ git checkout -f dd4af83976a060b0db41a6ace1662c93578c92b7
      [workspace] $ git tag -a -f -m "Hudson Build #14" hudson-My_App-14
      Recording changes in branch origin/master
      [workspace] $ git whatchanged --no-abbrev -M --pretty=raw dd4af83976a060b0db41a6ace1662c93578c92b7..dd4af83976a060b0db41a6ace1662c93578c92b7
      [workspace] $ /bin/sh xe /var/folders/xL/xLKbTUWzHTWiu7FoSOxiuU+++TI/-Tmp/hudson7463818921336374711.sh
      + /Users/vpdn/.hudson/jobs/My App/workspace/build.sh
      /var/folders/xL/xLKbTUWzHTWiu7FoSOxiuU+++TI/Tmp/hudson7463818921336374711.sh: line 2: /Users/vpdn/.hudson/jobs/My: No such file or directory
      Finished: FAILURE

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

              Created:
              Updated:
              Resolved: