2

I am using Jenkins with the source control plugin name UCM ClearCase.
It tries to create a view and fails with the error:

[onlysourcecode] $ cleartool mkview -snapshot -stream ROLE_Test_Project_DevSG@\Vobname -tag SYSTEM_master_Test_ROLE_001_hudson view
Selected Server Storage Location "Views".
cleartool: Error: unable to set access control list for \\server\viewstor\NT+AUTHORITY\SYSTEM\view.1.vws: Access is denied.
cleartool: Error: protection on \\server\viewstor\NT+AUTHORITY\SYSTEM\view.1.vws is out-of-synch with identity.sd and groups.sd
cleartool: Error: Failed to set identity on view: Permission denied
cleartool: Error: unable to set access control list for \\server\viewstor\NT+AUTHORITY\SYSTEM\view.1.vws: Access is denied.
cleartool: Error: \\server\viewstor\NT+AUTHORITY\SYSTEM\view.1.vws: Permission denied
cleartool: Error: Unable to create view "\\server\viewstor\NT+AUTHORITY\SYSTEM\view.1.vws".
FATAL: UCM ClearCase failed. exit code=1

Which basically means it does not have permissions to create a view. Now my questions:

  1. Any ideas on what exactly is the problem here?

  2. What ID is Jenkins using internally. Meaning I have a user ID on the DOMAIN controller where I log in to the machine and run Jenkins. If Jenkins uses that, then why this error as I can create views.

  3. If not, then what ID does it use and how do I get Jenkins to use my domain ID, or else maybe get the internal ID to be a part of the ClearCase AD group.

4

2 回答 2

2

要添加到Raghuram答案,使用系统帐户 ( NT+AUTHORITY) 很棘手,因为即使您指定本地视图存储,:

  • 该帐户不会CLEARCASE_PRIMARY_GROUP与其个人资料关联
  • 即使是这样,它也不会是引用的组的一部分CLEARCASE_PRIMATY_GROUP

这意味着它将无法访问它需要在视图中访问的 Vob的VOB存储。

无论如何,至少您应该尝试将 Slave Service 配置为 Run as Domain User

于 2011-12-06T11:42:14.487 回答
2

我猜这是在 Windows 机器上作为服务运行的。因此它不是作为域用户运行的。

jenkins 似乎正在尝试根据系统上的 clearcase 配置在默认位置创建视图存储 (.vws)。

也许您应该选择Advanced...选项UCM Clearcase并明确指定视图存储的位置。有

  • windows查看存储目录
  • 额外的 mkview 参数

我在一个 linux 机器上运行 jenkins,我在 .vws 文件中指定了一个明确的位置Additional mkview arguments

于 2011-12-06T11:32:18.057 回答