问题描述
使用插件 1.7.4 创建视图cleartool mkview -tag $view-name $view-name
"时出现错误.
Get the error when creating the view "cleartool mkview -tag $view-name $view-name
" with plugin 1.7.4.
在命令行末尾添加了额外的view-name
.
Additional view-name
added at the end of command line.
在附加参数中,我放置了视图的 UNC 路径.如果我不添加它,它会给我...应提供 UNC 路径..."错误.
日志:
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 \buildercc_viewsjenkins_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"
推荐答案
cleartool mkview -tag $view-name $view-name
不正确.
您需要 -vws
(对于视图存储路径:您的 UNC 路径)或 -stg
(对于视图存储的名称)
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.
所以应该是:
cleartool mkview -tag $view-name
附加参数:-stg a_view-storage-unc_path
OP ZeevT 在评论中添加:
现在尝试使用快照视图,但同样失败.见下面Jenkins生成的cmd:
Building remotely on build-xp [Hello World]
$ cleartool mkview -snapshot -tag jenkins_Official_G4_FW_Platform_Dev_int \build-xpCC_viewsjenkins_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
我提到快照视图的视图存储路径应该以-vws
开头,OP确认:
I mention that the view storage path for a snapshot view should be preceded by -vws
, and the OP confirms:
对于快照视图 -vws
解决了问题 -
所以动态视图仍然存在问题...
So there is still an issue for dynamic views...
这篇关于创建视图时报错“cleartool mkview -tag $view-name $view-name";使用 Clearcase UCM 插件 1.7.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!