Get the error when creating the view “cleartool mk

2020-02-15 06:29发布

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条回答
【Aperson】
2楼-- · 2020-02-15 06:51
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...

查看更多
登录 后发表回答