按活动列出元素
我正在研究自动化构建,并且需要能够列出在特定活动下处理的元素。我是 ClearCase 的新手,所以我为自己的天真道歉...
我的下游构建过程工作正常,我现在需要通过识别与一个或多个活动、标签关联的(签入)文件来填充“预构建”区域等等(实际上是变更/发布经理想要的任何组合),列出构建的候选文件,然后从 M: 驱动器 (Windows) 复制它们。我们在 AIX 和 Win XP Pro 桌面上使用带有后端的 CC 7.1。我们将使用 ccperl 来驱动查找+复制过程。
我一直在与“查找”作斗争,但无济于事 - 有人可以伸出援手吗?非常感谢所有的帮助。
悬崖。
I'm working on automated builds and need to be able to list elements that were worked on under particular activities. I'm new to ClearCase so I apologise for naiivety ...
My downstream build process works fine and I now need to populate a 'pre-build' area by identifying the (checked-in) files associated with one or more activities, labels etc (in fact any combination the change/release manager wants) by listing the candidate files for a build and then copying them from the M: drive (Windows). We are using CC 7.1 with a back end on AIX and Win XP Pro desktops. We'll use ccperl to drive the find+copy process.
I have battled with 'find' to no avail - can someone lend a hand? All help gratefully received.
Cliff.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最简单的方法是为动态视图配置配置规范:
以便快速访问正确的文件。
对于活动,您可以(如果涉及的文件不多)列出您想要的每个活动的确切版本:
cleartool descr -l Activity:my_actity@\pvob
并将结果解析为 grep/awk 仅您需要的内容。
您只需在动态视图(任何动态视图)中执行此操作:该活动将包含扩展路径名列表,这意味着您将能够通过该
myFile访问和复制每个版本@@/main/myBranch/myVersion
路径。The easiest way would be to configure a config spec for a dynamic view:
in order to quickly access the right files.
For activities, you could (if there is not too much files involved), list the exact versions of each activities you want:
cleartool descr -l activity:my_actity@\pvob
and parse the result to grep/awk only what you need.
You need only to do this within a dynamic view (any dynamic view): the activity will contain a list of extended pathnames, meaning you will be able to access and copy each version through that
myFile@@/main/myBranch/myVersion
path.