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

UCM multi-line or multiple load rules don't work

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • clearcase-plugin
    • None
    • Platform: All, OS: All

    Description

      Using Clearcase plugin 0.84 and Hudson 1.280.

      When I configure multiple load rules like this:

      M:\rwc467_m1\qbvision-nms
      M:\rwc467_m1\qbvision-install

      the result from the clearcase plugin is padding the first line at the end with
      whitespace (presumably from the "Load rules" configuration textbox) such that
      the clearcase command doesn't work as shown from the hudson output below:

      *******
      Started
      [] $ cleartool startview rwc467_m1
      [rwc467_m1] $ cleartool chstream -generate stream:qbv-main_Integration
      Changed stream "stream:qbv-main_Integration".
      [] $ cleartool setcs -tag rwc467_m1 -stream
      [rwc467_m1] $ cleartool lshistory -r -since 15-may.13:47:21 -fmt '\"%Nd\"
      \"%En\" \"%Vn\" \"%[activity]p\" \"%e\" \"%o\" \n%c\n' -branch
      brtype:qbv-main_Integration -nco "M:\rwc467_m1\qbvision-nms"
      "M:\rwc467_m1\qbvision-install"
      cleartool: Error: Unable to access "M:\rwc467_m1\qbvision-nms
      ": No such file or directory.
      *************

      The workaround is to use quotes on the same line for multiple load rules as in:
      "M:\rwc467_m1\qbvision-nms" "M:\rwc467_m1\qbvision-install"

      Attachments

        Activity

          jweden jweden added a comment -

          Thanks, this works. Fixed in version: 0.8.5-SNAPSHOT (private-05/15/2009
          12:12-abayer)

          Here is the output.

          started

          [] $ cleartool startview rwc467_m1

          [rwc467_m1] $ cleartool chstream -generate stream:qbv-main_Integration

          Changed stream "stream:qbv-main_Integration".

          [] $ cleartool setcs -tag rwc467_m1 -stream

          [rwc467_m1] $ cleartool lshistory -r -since 18-may-09.15:51:51utc+0000 -fmt
          '\"%Nd\" \"%u\" \"%En\" \"%Vn\" \"%e\" \"%o\" \"%[activity]p\" \n%c\n' -branch
          brtype:qbv-main_Integration -nco M:\rwc467_m1\qbvision-nms
          M:\rwc467_m1\qbvision-install

          [build] $ cmd.exe /C '"E:\hudson\jobs\configserve

          jweden jweden added a comment - Thanks, this works. Fixed in version: 0.8.5-SNAPSHOT (private-05/15/2009 12:12-abayer) Here is the output. started [] $ cleartool startview rwc467_m1 [rwc467_m1] $ cleartool chstream -generate stream:qbv-main_Integration Changed stream "stream:qbv-main_Integration". [] $ cleartool setcs -tag rwc467_m1 -stream [rwc467_m1] $ cleartool lshistory -r -since 18-may-09.15:51:51utc+0000 -fmt '\"%Nd\" \"%u\" \"%En\" \"%Vn\" \"%e\" \"%o\" \"% [activity] p\" \n%c\n' -branch brtype:qbv-main_Integration -nco M:\rwc467_m1\qbvision-nms M:\rwc467_m1\qbvision-install [build] $ cmd.exe /C '"E:\hudson\jobs\configserve
          abayer Andrew Bayer added a comment -

          Created an attachment (id=703)
          0.8.5-SNAPSHOT with change to handling of line endings in UCM load rules text

          abayer Andrew Bayer added a comment - Created an attachment (id=703) 0.8.5-SNAPSHOT with change to handling of line endings in UCM load rules text
          abayer Andrew Bayer added a comment -

          Ah, our old arch-nemesis: line-endings. *shakes fist at whoever decided to have
          Windows line endings be different from Unix line endings* I'll be attaching a
          test build which should fix this momentarily - had to change a split call to
          properly handle Windows line endings in the load rules text. Let me know if it
          works.

          abayer Andrew Bayer added a comment - Ah, our old arch-nemesis: line-endings. *shakes fist at whoever decided to have Windows line endings be different from Unix line endings* I'll be attaching a test build which should fix this momentarily - had to change a split call to properly handle Windows line endings in the load rules text. Let me know if it works.

          People

            abayer Andrew Bayer
            jweden jweden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: