在 Windows 机器上将 Hudson 与 UCM Clearcase 集成

发布于 2024-09-10 21:18:33 字数 2338 浏览 3 评论 0原文

我已在 Windows 计算机上安装了 Hudson,并尝试将其与 UCM Clearcase(我们正在使用的存储库)集成。
Hudson wiki 上没有可用的帮助文档来解释如何执行此操作。

  • 我选择新工作 -->项目名称
  • 我给出的是Test -->选择构建自由风格的软件项目-->单击“确定”
  • -->这将引导我进入“配置项目”屏幕
  • -->在源代码管理下,我选择UCM Clearcase
  • -->我给出了一个已经创建的动态视图名称和集成流的名称(在流选择器中)
  • -->在高级选项下,我选择“使用 UCM 动态视图”并将视图根指定为 M:\ 并在“Windows 动态视图存储”中目录”我给出\\Hostname\CC_Views\MyTestView.vws

现在我运行该项目来检查提取是否正常工作,并收到此错误:

[advcm3_LAC_FN38_Test] $ cleartool pwv -root M:\advcm3_LAC_FN38_Test
[workspace] $ cleartool startview advcm3_LAC_FN38_Test 
[advcm3_LAC_FN38_Test] $ cleartool setcs -tag advcm3_LAC_FN38_Test -stream
cleartool: Warning: Config spec OK, but unable to tell view server to load.
cleartool: Warning: View server should be restarted.
cleartool: Error: Unable to change configuration specification: Permission denied.
FATAL: UCM ClearCase failed. exit code=1
java.io.IOException: cleartool did not return the expected exit code. Command line="setcs -tag advcm3_LAC_FN38_Test -stream", actual exit code=1
 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:107)
 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:70)
 at hudson.plugins.clearcase.ClearToolDynamicUCM.setcs(ClearToolDynamicUCM.java:81)
 at hudson.plugins.clearcase.ClearToolDynamicUCM.syncronizeViewWithStream(ClearToolDynamicUCM.java:66)
 at hudson.plugins.clearcase.action.UcmDynamicCheckoutAction.checkout(UcmDynamicCheckoutAction.java:99)
 at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:398)
 at hudson.model.AbstractProject.checkout(AbstractProject.java:1038)
 at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)
 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)
 at hudson.model.Run.run(Run.java:1257)
 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
 at hudson.model.ResourceController.execute(ResourceController.java:88)
 at hudson.model.Executor.run(Executor.java:129)

没有任何内容被提取到C:\Hudson\jobs\Test\workspace中。

有人可以指导我吗?

谢谢, 乌芒

I've installed Hudson on my windows machine and trying to integrate it with UCM Clearcase (the repository we are using).
There are no help docs available on Hudson wiki to explain how to do that.

  • I select New Job --> Project Name
  • I give as Test --> select Build a free style software project --> click Ok
  • --> This leads me to Configure Project screen
  • --> Under Source Code management I select UCM Clearcase
  • --> I give a dynamic view name I've already created and the name of the integration stream (in stream selector)
  • --> Under Advanced options I select "Use UCM dynamic view" and give view root as M:\ and in "Windows dynamic view storage directory" I give \\Hostname\CC_Views\MyTestView.vws.

Now I run the project to check if the fetch in working properly or not and I get this error:

[advcm3_LAC_FN38_Test] $ cleartool pwv -root M:\advcm3_LAC_FN38_Test
[workspace] $ cleartool startview advcm3_LAC_FN38_Test 
[advcm3_LAC_FN38_Test] $ cleartool setcs -tag advcm3_LAC_FN38_Test -stream
cleartool: Warning: Config spec OK, but unable to tell view server to load.
cleartool: Warning: View server should be restarted.
cleartool: Error: Unable to change configuration specification: Permission denied.
FATAL: UCM ClearCase failed. exit code=1
java.io.IOException: cleartool did not return the expected exit code. Command line="setcs -tag advcm3_LAC_FN38_Test -stream", actual exit code=1
 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:107)
 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:70)
 at hudson.plugins.clearcase.ClearToolDynamicUCM.setcs(ClearToolDynamicUCM.java:81)
 at hudson.plugins.clearcase.ClearToolDynamicUCM.syncronizeViewWithStream(ClearToolDynamicUCM.java:66)
 at hudson.plugins.clearcase.action.UcmDynamicCheckoutAction.checkout(UcmDynamicCheckoutAction.java:99)
 at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:398)
 at hudson.model.AbstractProject.checkout(AbstractProject.java:1038)
 at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)
 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)
 at hudson.model.Run.run(Run.java:1257)
 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
 at hudson.model.ResourceController.execute(ResourceController.java:88)
 at hudson.model.Executor.run(Executor.java:129)

Nothing has been fetched into C:\Hudson\jobs\Test\workspace.

Can someone please guide me in this?

Thanks,
Umang

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

花开浅夏 2024-09-17 21:18:33

这通常是 ACL 问题的症状。

您需要:

  • 确保哪个用户实际运行 Hudson 作业(以及使用什么 CLEARCASE_PRIMARY_GROUP 环境值)
  • 检查视图保护
    cd m:\advcm3_LAC_FN38_Test
    cleartool lsview -l -full -pro -cview

如果用户不同,您需要重新保护视图

fix_prot -force -r -chown rightUser -chgrp rightGroup -chmod 775 \\Hostname\CC_Views\MyTestView.vws.
fix_prot -force -root -chown rightUser -chgrp rightGroup \\Hostname\CC_Views\MyTestView.vws.

fix_prot 位于 c:/Program Files/rational/clearcase/etc/utils 中,或者 c:/Program Files/IBM/RationalSDLC/clearcase/etc/utils 适用于 CC7.1 或更高版本。

注意:奇怪的是,名为 advcm3_LAC_FN38_Test 的视图有一个名为 MyTestView.vws 的关联视图存储。

我宁愿期待 \\Hostname\CC_Views\advcm3_LAC_FN38_Test.vws

This is usually symptomatic of an ACL issue.

You need to:

  • make sure what user are actually running the Hudson Jobs (and with what CLEARCASE_PRIMARY_GROUP environment value)
  • check the view protection
    cd m:\advcm3_LAC_FN38_Test
    cleartool lsview -l -full -pro -cview

If the user differ, you need to reprotect the view

fix_prot -force -r -chown rightUser -chgrp rightGroup -chmod 775 \\Hostname\CC_Views\MyTestView.vws.
fix_prot -force -root -chown rightUser -chgrp rightGroup \\Hostname\CC_Views\MyTestView.vws.

fix_prot is in c:/Program Files/rational/clearcase/etc/utils for CC7.0 or less, or c:/Program Files/IBM/RationalSDLC/clearcase/etc/utils for CC7.1 or more.

Note: it is strange that a view called advcm3_LAC_FN38_Test has an associated view storage called MyTestView.vws.

I would have rather expected a \\Hostname\CC_Views\advcm3_LAC_FN38_Test.vws.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文