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

View Storage Location should be a required parameter

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • clearcase-plugin
    • None
    • Windows Server 2003
      ClearCase 7.0.0.2

      When Base ClearCase is selected as the Source Code Management option for a Hudson project, the user is presented the following parameters:

      View name
      Config spec
      Load rules
      Use update
      Branch(es)

      When the user fills in the required parameters they will get an error when Hudson attempts to create the ClearCase snapshot view. The following command is executed by Hudson to create the snapshot view.

      cleartool mkview -snapshot -tag ${CLEARCASE_VIEWNAME} ${CLEARCASE_VIEWNAME}

      The error message will look like the following:

      cleartool: Error: storage directory must be in UNC style (e.g. \\host\share\...)
      FATAL: Base ClearCase failed. exit code=1

      The problem is that the storage location for the view is not a required parameter. The user has three options to get this integration to work and two are documented here (http://wiki.jenkins-ci.org/display/JENKINS/ClearCase+Plugin).

      1) Define a "Server Storage Location" using the 'cleartool mkstgloc' command. After this, the mkview command executed by Hudson will work, but the view storage location will be "automatically selected" by ClearCase.

      2) Select "Advanced" and specify the following "Additional mkview arguments"
      -vws \\<host>\<shared_folder>\${CLEARCASE_VIEWNAME}.vws

      3) Select "Advanced" and specify the following "Additional mkview arguments"
      -stgloc ${SERVER_STORAGE_LOCATION_NAME}

      It seems that the "View Storage Location" should be added as a required parameter. The user should be required to select either a "Server Storage Location" or specify a "UNC Path". This would result in a "-stgloc" or "-vws" argument being added to the mkview command executed by Hudson during snapshot view creation.

            Unassigned Unassigned
            jasonkirchhoff jasonkirchhoff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: