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

Create view if view doesn't exist doesn't work for dynamic views

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • clearcase-plugin
    • None
    • unix

      (tested with 1.3.7)
      When I check "use dynamic views" and "Create view if view doesn't exist", the command line generated is such :

      cleartool mkview -snapshot -stream NAME_OF_THE_STREAM_OK -tag VIEWTAG_OK -stgloc -auto

      Here you see a nasty "-snapshot" argument making troubles.
      The error message is "cleartool: Error: View directory pathname must be specified."

          [JENKINS-11898] Create view if view doesn't exist doesn't work for dynamic views

          Eric Le Lay added a comment -

          patch that fixes it.
          It also modifies the POM.
          This is because I don't want to break the patch format but it is not related to the bug.

          Eric Le Lay added a comment - patch that fixes it. It also modifies the POM. This is because I don't want to break the patch format but it is not related to the bug.

          Krzysztof Malinowski added a comment - - edited

          Another symptom is for base ClearCase:

          $ cleartool mkview -tag <view_tag>
          cleartool: Error: View directory pathname must be specified.
          Usage: mkview -tag dynamic-view-tag [-tcomment tag-comment] [-tmode text-mode]
                        [-region network-region | -stream stream-selector]
                        [-shareable_dos | -nshareable_dos] [-cachesize size]
                        [-ln link-storage-to-dir-pname] [-ncaexported]
                        { -stgloc {view-stgloc-name | -auto}
                        | [-host hostname -hpath host-stg-pname -gpath global-stg-pname]
                          dynamic-view-storage-pname
                        }
                 mkview -snapshot [-tag snapshot-view-tag]
                        [-tcomment tag-comment] [-tmode text-mode]
                        [-cachesize size] [-ptime] [-stream stream-selector]
                        [ -stgloc view-stgloc-name
                        | -colocated_server [-host hostname -hpath host-snapshot-view-pname -gpath global-snapshot-view-pname]
                        | -vws view-storage-pname [-host hostname -hpath host-stg-pname -gpath global-stg-pname]
                        ] snapshot-view-pname
          FATAL: Base ClearCase failed. exit code=1
          

          Here location for dynamic view is not given at all.

          Krzysztof Malinowski added a comment - - edited Another symptom is for base ClearCase: $ cleartool mkview -tag <view_tag> cleartool: Error: View directory pathname must be specified. Usage: mkview -tag dynamic-view-tag [-tcomment tag-comment] [-tmode text-mode] [-region network-region | -stream stream-selector] [-shareable_dos | -nshareable_dos] [-cachesize size] [-ln link-storage-to-dir-pname] [-ncaexported] { -stgloc {view-stgloc-name | -auto} | [-host hostname -hpath host-stg-pname -gpath global-stg-pname] dynamic-view-storage-pname } mkview -snapshot [-tag snapshot-view-tag] [-tcomment tag-comment] [-tmode text-mode] [-cachesize size] [-ptime] [-stream stream-selector] [ -stgloc view-stgloc-name | -colocated_server [-host hostname -hpath host-snapshot-view-pname -gpath global-snapshot-view-pname] | -vws view-storage-pname [-host hostname -hpath host-stg-pname -gpath global-stg-pname] ] snapshot-view-pname FATAL: Base ClearCase failed. exit code=1 Here location for dynamic view is not given at all.

          Code changed in jenkins
          User: Vincent Latombe
          Path:
          src/main/java/hudson/plugins/clearcase/ClearToolExec.java
          src/main/java/hudson/plugins/clearcase/action/UcmDynamicCheckoutAction.java
          http://jenkins-ci.org/commit/clearcase-plugin/35996f3090bc1eb019f4a46a918231b75c217c51
          Log:
          JENKINS-11898 Create view if view doesn't exist doesn't work for
          dynamic views

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vincent Latombe Path: src/main/java/hudson/plugins/clearcase/ClearToolExec.java src/main/java/hudson/plugins/clearcase/action/UcmDynamicCheckoutAction.java http://jenkins-ci.org/commit/clearcase-plugin/35996f3090bc1eb019f4a46a918231b75c217c51 Log: JENKINS-11898 Create view if view doesn't exist doesn't work for dynamic views

          Hi,

          the fix for this will be released in 1.3.12.

          Vincent Latombe added a comment - Hi, the fix for this will be released in 1.3.12.

          MeTAlMollY added a comment - - edited

          Hi Vincent,

          Commit 35996f3090bc1eb019f4a46a918231b75c217c51 made to fix this problem is not correct.
          As the -vws argument is not available for dynamic views.

          MeTAlMollY added a comment - - edited Hi Vincent, Commit 35996f3090bc1eb019f4a46a918231b75c217c51 made to fix this problem is not correct. As the -vws argument is not available for dynamic views.

          MeTAlMollY added a comment - - edited

          -

          MeTAlMollY added a comment - - edited -

            vlatombe Vincent Latombe
            kerik Eric Le Lay
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: