问题描述
我有一个linux构建机器与JBoss,UCM ClearCase和ant安装。我想了解如何配置使用Hudson和Hudson清除插件的连续集成。我可以使用已创建的现有动态视图。请给我一些基本的步骤。提前感谢。
I have a linux build machine with JBoss, UCM ClearCase and ant installed. I would like to find out how to configure a continuous integration using Hudson and Hudson clearcase plugin. Can I use an existing dynamic view that is already created. Please give me some basic steps. Thank you in advance.
推荐答案
是的,您可以使用现有的动态视图。
Yes you can use an existing dynamic view.
原则是:
- 在您的hudson服务器上创建动态视图
- 在Hudson Job配置中指明要使用现有的动态视图(您必须将其根路径:
/ view / yourView
) - 让hudson监控自上次运行以来发展的文件(它将通过查询动态视图中文件的历史记录)。
当然,您需要。
Off course, you will need the ClearCase plugin to be installed first.
这是一个插图(完整的)这样的作业的配置如下:
Here is an illustration (complete with the mandatory Freehand Circles) of what the configuration of such a Job looks like:
(注意:M:\myView而不是/ view / MyView:这是因为我在Windows7笔记本电脑上创建这个示例)
(Note: M:\myView instead of /view/MyView: that is because I am making this example on my Windows7 laptop)
动态视图提示:
要使用此选项,必须使用通用的ClearCase工具在Hudson之外创建动态视图。如果动态视图不存在,检出将失败。视图的标记应与视图名称字段中指定的标记相同。
To use this option, the dynamic view has to be created outside Hudson using the common ClearCase tools. A check out will fail if the dynamic view does not exist. The tag of the view should be the same as specified in the "View name" field.
不要重置配置规范以保留视图的现有配置规范。
I recommend checking the option Do Not Reset Config Spec to preserve the existing config spec of your view.
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类型中访问服务器
That means the protection on this view are somehow false:
Could you go on the server in /view/vijaym_SNDBX_INT_View
et type
cleartool lsview -l -full -pro -cview?
可能的错误原因:
-
umask!= 2
(键入umask
检查值,如果不同于2 ,type'umask 2
') - owner not vijaym
- Hudson不是vob组之一(检查/设置运行该进程的用户的主组:'
id -a
'
umask != 2
(type 'umask
' to check the value, if different from 2, type 'umask 2
')- owner not vijaym
- group of the process running Hudson not one of the vob groups (check/set the primary group of the user running that process: '
id -a
'
解决方案:重置该视图上的保护(确保我们的路径引用 / usr / atria / etc / utils
,其中 fix_prot
is)
Solution: reset the protection on that view (make sure our path references /usr/atria/etc/utils
, where fix_prot
is)
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
这篇关于Hudson与UCM ClearCase集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!