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

UCM load rules drops single "\" when used

    XMLWordPrintable

Details

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

    Description

      A load rule on Windows may look like this "\\project\data". If the UCM load rule
      field is set to this, then path used in lshistory will be "\projectdata".
      Somehow the "\" char is removed, and "
      " replaced with "\".

      CC plugin 0.5.1

      lshistory command:
      lshistory -r -since 16-maj.10:08:47 -fmt '\"%Nd\" \"%u\" \"%e\" \"%En\" \"%Vn\"
      \"%o\"\n%c\n' -branch brtype:STREAM -nco \projectdata

      Attachments

        Activity

          redsolo redsolo added a comment -

          Output when "\" is dropped in the update command.

          [workspace] $ "C:\Program Files\Rational\ClearCase\bin\cleartool.exe" mkview
          -snapshot -stream stream:AAMITools_R3.00_Development@\AAMI_PVOB -tag hudson_view
          hudson_view
          Selected Server Storage Location "mystgloc".
          Created view.
          Host-local path:
          L3KEK93:c:\ClearCase_Storage\myview.vws\L3KEK93\APCPG\hudson_view.vws
          Global path: \\L3KEK93\ccstg_c\myview.vws\L3KEK93\APCPG\hudson_view.vws
          Created snapshot view directory "hudson_view".
          Attached view to stream "AAMITools_R3.00_Development".
          [workspace] $ "C:\Program Files\Rational\ClearCase\bin\cleartool.exe" update
          -force -log NUL -add_loadrules hudson_view
          AAMI_COMMONAAMI_TOOLS
          cleartool: Error: Unable to determine version for VOB root directory element.
          cleartool: Error: Unable to access "\AAMI_COMMONAAMI_TOOLS": No such file or
          directory.
          cleartool: Error: 1 config spec load rule problems encountered.
          cleartool: Error: Unable to add config spec load rules for update.

          FATAL: UCM ClearCase failed. exit code=1
          FATAL: cleartool did not return the expected exit code. Command line="C:\Program
          Files\Rational\ClearCase\bin\cleartool.exe update -force -log NUL -add_loadrules
          hudson_view
          AAMI_COMMONAAMI_TOOLS", actual exit code=1
          java.io.IOException: cleartool did not return the expected exit code. Command
          line="C:\Program Files\Rational\ClearCase\bin\cleartool.exe update -force -log
          NUL -add_loadrules hudson_view
          AAMI_COMMONAAMI_TOOLS", actual exit code=1

          redsolo redsolo added a comment - Output when "\" is dropped in the update command. [workspace] $ "C:\Program Files\Rational\ClearCase\bin\cleartool.exe" mkview -snapshot -stream stream:AAMITools_R3.00_Development@\AAMI_PVOB -tag hudson_view hudson_view Selected Server Storage Location "mystgloc". Created view. Host-local path: L3KEK93:c:\ClearCase_Storage\myview.vws\L3KEK93\APCPG\hudson_view.vws Global path: \\L3KEK93\ccstg_c\myview.vws\L3KEK93\APCPG\hudson_view.vws Created snapshot view directory "hudson_view". Attached view to stream "AAMITools_R3.00_Development". [workspace] $ "C:\Program Files\Rational\ClearCase\bin\cleartool.exe" update -force -log NUL -add_loadrules hudson_view AAMI_COMMONAAMI_TOOLS cleartool: Error: Unable to determine version for VOB root directory element. cleartool: Error: Unable to access "\AAMI_COMMONAAMI_TOOLS": No such file or directory. cleartool: Error: 1 config spec load rule problems encountered. cleartool: Error: Unable to add config spec load rules for update. FATAL: UCM ClearCase failed. exit code=1 FATAL: cleartool did not return the expected exit code. Command line="C:\Program Files\Rational\ClearCase\bin\cleartool.exe update -force -log NUL -add_loadrules hudson_view AAMI_COMMONAAMI_TOOLS", actual exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="C:\Program Files\Rational\ClearCase\bin\cleartool.exe update -force -log NUL -add_loadrules hudson_view AAMI_COMMONAAMI_TOOLS", actual exit code=1
          lynggaard lynggaard added a comment -

          This should be fixed in 0.5.2-SNAPSHOT, svn revision 9345

          It appears Util.tokenize does not handle
          nicely, so reverted to String.split()

          lynggaard lynggaard added a comment - This should be fixed in 0.5.2-SNAPSHOT, svn revision 9345 It appears Util.tokenize does not handle nicely, so reverted to String.split()
          abayer Andrew Bayer added a comment -

          Bulk-updating all bugs fixed through 0.8.1 to VERIFIED. Part of cleanup for
          0.8.2 release.

          abayer Andrew Bayer added a comment - Bulk-updating all bugs fixed through 0.8.1 to VERIFIED. Part of cleanup for 0.8.2 release.

          People

            redsolo redsolo
            redsolo redsolo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: