我有一台带有JBoss,UCM ClearCase和ant安装的linux构建机器。我想了解如何使用Hudson和Hudson clearcase插件配置持续集成。我可以使用已创建的现有动态视图吗?请给我一些基本步骤。提前谢谢。
答案 0 :(得分:2)
是的,您可以使用现有的动态视图。
原则是:
/view/yourView
)当然,您需要先安装ClearCase plugin。
以下是此类作业配置的示例(包括mandatory Freehand Circles):
alt text http://img405.imageshack.us/img405/3261/jobhudsoncc2.png
(注意:M:\ myView而不是/ view / MyView:这是因为我在我的Windows7笔记本电脑上制作了这个示例)
“使用现有动态视图”的文档提及:
如果设置,Hudson将使用现有的动态视图而不是创建快照视图。使用动态视图时,Hudson的行为会有所不同。它不会创建或删除视图,因此如果启用此选项,则会忽略“使用更新”配置。该插件将在需要时更新视图的配置规范。
要使用此选项,必须使用常用的ClearCase工具在Hudson外部创建动态视图。如果动态视图不存在,则签出将失败。视图的标记应与“视图名称”字段中指定的标记相同。
我建议选中不重置配置规范选项以保留视图的现有配置规范。
workspace] $ cleartool setcs -tag vijaym_SNDBX_INT_View -stream
cleartool: Error: Unable to change configuration specification: Permission denied.
FATAL: UCM ClearCase failed. exit code=1
这意味着对此观点的保护在某种程度上是错误的:
你能用/view/vijaym_SNDBX_INT_View
et type
cleartool lsview -l -full -pro -cview?
可能的错误原因:
umask != 2
(键入“umask
”以检查值,如果与2不同,请键入“umask 2
”)id -a
'解决方案:重置该视图的保护(确保我们的路径引用/usr/atria/etc/utils
,其中fix_prot
是
cd / # leave the view
cleartool endview -server vijaym_SNDBX_INT_View # stop completely the view
cleartool umount -all # make sure all vobs are unmounted
# reset protections
fix_prot -force -rec -chown vijaym -chgrp aCorrectGroup -chmod 775 /path/to/vijaym_SNDBX_INT_View.vws
fix_prot -force -root -chown vijaym -chgrp aCorrectGroup /path/to/vijaym_SNDBX_INT_View.vws
#restart the view and mount the vobs
cleartool startview vijaym_SNDBX_INT_View
cleartool mount -all
# check if the protections are ok
cd /view/vijaym_SNDBX_INT_View
cleartool lsview -l -full -pro -cview
答案 1 :(得分:1)
我遇到了同样的问题。 但在我的情况下,指向服务器的视图实际上并不存在。 在你的情况下,似乎Hudson用户没有unix框的权限。 尝试使用适当的凭据运行jboss和hudson用户clearcase服务器。