Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-230

release task fails if there's a space in the path to the Buildfile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.3
    • 1.3.4
    • Core features
    • None

    Description

      Here's a transcript of a build log illustrating the issue:

      2008-12-18 16:51:06,095 [Thread-329937] INFO - Triggering step "buildr release".
      2008-12-18 16:51:06,095 [Thread-329937] INFO - Checking necessary condition of step "buildr release".
      2008-12-18 16:51:06,095 [Thread-329937] INFO - Condition satisfied, running step "buildr release".
      2008-12-18 16:51:09,544 [Thread-329947] INFO - (in /media/sdb1/home/release/tools/quickbuild-1.0.5/working/root/Intalio/Designer/Designer BRE plug-ins/branch-M3/Release-builds/checkouts, development)
      2008-12-18 16:51:09,544 [Thread-329947] INFO - Cleaning com.intalio.bre
      2008-12-18 16:51:09,544 [Thread-329946] WARN - /usr/bin/buildr 1.3.3 clean upload --buildfile /media/sdb1/home/release/tools/quickbuild-1.0.5/working/root/Intalio/Designer/Designer BRE plug-ins/branch-M3/Release-builds/checkouts/Buildfile.next DEBUG=no --environment development
      2008-12-18 16:51:10,104 [Thread-329946] WARN - buildr aborted!
      2008-12-18 16:51:10,104 [Thread-329946] WARN - No Buildfile found (looking for: /media/sdb1/home/release/tools/quickbuild-1.0.5/working/root/Intalio/Designer/Designer)
      2008-12-18 16:51:10,104 [Thread-329946] WARN - /usr/lib/ruby/gems/1.8/gems/buildr-1.3.3/lib/buildr/core/application.rb:152:in `expand_path': can't convert nil into String (TypeError)
      2008-12-18 16:51:10,104 [Thread-329946] WARN - from /usr/lib/ruby/gems/1.8/gems/buildr-1.3.3/lib/buildr/core/application.rb:152:in `buildfile'
      2008-12-18 16:51:10,104 [Thread-329946] WARN - from /usr/lib/ruby/gems/1.8/gems/buildr-1.3.3/lib/buildr/core/application.rb:337:in `standard_exception_handling'
      2008-12-18 16:51:10,104 [Thread-329946] WARN - from /usr/lib/ruby/gems/1.8/gems/buildr-1.3.3/lib/buildr/core/application.rb:337:in `select'
      2008-12-18 16:51:10,104 [Thread-329946] WARN - from /usr/lib/ruby/gems/1.8/gems/buildr-1.3.3/lib/buildr/core/application.rb:337:in `standard_exception_handling'
      2008-12-18 16:51:10,104 [Thread-329946] WARN - from /usr/lib/ruby/gems/1.8/gems/buildr-1.3.3/lib/buildr/core/application.rb:161:in `run'
      2008-12-18 16:51:10,104 [Thread-329946] WARN - from /usr/lib/ruby/gems/1.8/gems/buildr-1.3.3/bin/buildr:20
      2008-12-18 16:51:10,105 [Thread-329946] WARN - from /usr/bin/buildr:19:in `load'
      2008-12-18 16:51:10,105 [Thread-329946] WARN - from /usr/bin/buildr:19
      2008-12-18 16:51:10,122 [Thread-329946] WARN - buildr aborted!
      2008-12-18 16:51:10,122 [Thread-329946] WARN - Command failed with status (1): [/usr/bin/buildr _1.3.3_ clean upload --bui...]
      2008-12-18 16:51:10,123 [Thread-329946] WARN -

      The issue is the --buildfile parameter value is not properly escaped for spaces:

      --buildfile /media/sdb1/home/release/tools/quickbuild-1.0.5/working/root/Intalio/Designer/Designer BRE plug-ins/branch-M3/Release-builds/checkouts/Buildfile.next

      Attachments

        1. fix_for_buildr-230.patch
          0.6 kB
          Joel Muzzerall
        2. fix_for_buildr-230-try2.patch
          1 kB
          Joel Muzzerall

        Activity

          People

            Unassigned Unassigned
            boisvert Alex Boisvert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: