Get the error when creating the view “cleartool mkview -tag $view-name $view-name" with Clearcase UCM Plugin 1.7.4

帅比萌擦擦* 提交于 2019-11-28 10:52:03

问题


Get the error when creating the view “cleartool mkview -tag $view-name $view-name" with plugin 1.7.4.

Additional view-name added at the end of command line.

In the additional arguments I placed the UNC path to the view. In case I don't add it it gives me "... UNC path should be provided..." error.
Log:

Building remotely on builder
[test] $ cleartool mkview -tag jenkins_Official_G4_FW_Platform_Dev_int_22 \\builder\cc_views\jenkins_Official_G4_FW_Platform_Dev_int_22 jenkins_Official_G4_FW_Platform_Dev_int_22
cleartool: Error: Extra arguments: "jenkins_Official_G4_FW_Platform_Dev_int_22"

回答1:


cleartool mkview -tag $view-name $view-name

is incorrect.

You need either -vws (for the view storage path: your UNC path) or -stg (for the name of a view storage)

See cleartool mkview man page.

So it should be:

cleartool mkview -tag $view-name 

with additional argument: -stg a_view-storage-unc_path


The OP ZeevT adds in the comments:

Tried now using snapshot view, but same failure. See below the cmd generated by Jenkins:

Building remotely on build-xp [Hello World] 
$ cleartool mkview -snapshot -tag jenkins_Official_G4_FW_Platform_Dev_int \\build-xp\CC_views\jenkins_Official_G4_FW_Platform_Dev_int.vws jenkins_Official_G4_FW_Platform_Dev_int 

cleartool: Error: Extra arguments: "jenkins_Official_G4_FW_Platform_Dev_int" – ZeevT 2 days ago

I mention that the view storage path for a snapshot view should be preceded by -vws, and the OP confirms:

For snapshot view -vws solved the problem

So there is still an issue for dynamic views...



来源:https://stackoverflow.com/questions/8703648/get-the-error-when-creating-the-view-cleartool-mkview-tag-view-name-view-nam

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!