我在我的Windows机器上安装了Hudson,并尝试将其与UCM Clearcase(我们正在使用的存储库)集成。
Hudson wiki上没有可用的帮助文档来解释如何做到这一点。
New Job --> Project Name
Test --> select Build a free style software project --> click Ok
Source Code management
下,我选择UCM Clearcase
Advanced options
下,我选择“Use UCM dynamic view
”并将视图根目录设为M:\
,并在“Windows dynamic view storage directory
”中提供\\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
。
有人可以指导我吗?
谢谢, Umang
答案 0 :(得分:0)
这通常是ACL问题的症状。
你需要:
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.
对于CC7.0或更低版本, fix_prot
位于c:/Program Files/rational/clearcase/etc/utils
,对于CC7.1或更高版本,c:/Program Files/IBM/RationalSDLC/clearcase/etc/utils
位于advcm3_LAC_FN38_Test
。
注意:名为MyTestView.vws
的视图有一个名为\\Hostname\CC_Views\advcm3_LAC_FN38_Test.vws
的关联视图存储,这很奇怪。
我宁愿期待{{1}}。