如何为UCM中的所有成员基准更新属性? [英] How to update the property for all member baseline in UCM?

查看:85
本文介绍了如何为UCM中的所有成员基准更新属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们为组件提供了综合基准。

We have composite baseline for our components.

每当我们在推荐基准之后发布产品时,我都会更改基准的属性以更改促销级别。

Whenever we release the product after recommend the baseline, I would change the property of baseline to change the promotion level.

默认情况下,促销级别为 INITIAL

在发布产品时,我会将促销属性更改为 外部发布

By default the promotion level is "INITIAL".
While we release the product i would change the Promotion property as "EXTERNAL RELEASE".

但是要做到这一点,我必须去编辑每个成员基准属性。

是否可以对复合基准属性进行更改以复制到其成员中?

But to do this, I have to go and edit each any every member baseline property.
Is there any way to make changes in composite baseline properties to replicate in it's member?

推荐答案

不,复合基线的自定义值与其基线成员之间没有继承性。

No, the re is no "inheritance" between the custom values of a composite baseline and its baseline member.

最好通过描述复合基线来编写操作脚本,以提取基线成员名称,并使用新值对每个对象执行 cleartool mkattr -replace

cleartool mkattr 具有-递归-递归-选项,但它会仅适用于目录,不适用于非文件系统对象)

It is best to script the operation, by describing the composite baseline, extract the baseline members name, and do a cleartool mkattr -replace on each one with the new value.
(cleartool mkattr has a -recurs - recursive - option, but it would be for directory only, it doesn't work for non-file-system objects)

cleartool descr -fmt "%[depends_on]Cp\n" aCompositeBaseline@\aPVob
# for each member baselines
cleartool mkattr -replace PromotionLevel "EXTERNAL RELEASE" baseline:aBaseline@\aPVob

请注意我如何使用要在其上修改自定义属性值的对象的全限定名称: baseline:aBaseline @ \aPVob

Note how I use the fully qualifed name of the object on which I want to modify the custom attribute value: baseline:aBaseline@\aPVob.

因为 EXTERNAL_RELEASE 不是默认促销活动级别,则需要先对其进行定义:请参阅 关于创建定制促销级别和UCM基线的属性类型

Since "EXTERNAL_RELEASE" isn't a default promotion level, you need to define it first: see "About creating custom promotion levels and attribute types for UCM baselines".

这篇关于如何为UCM中的所有成员基准更新属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆