1

我有一个 unix shell 脚本,它允许我从命令行创建 ucm 项目(因此我不必回忆所有开关,并且可以一次性完成所有操作(项目、集成流、开发流等)) .

我可以打电话mkproject.sh myproject-1@/vobs/my_pvob,它为我做了几乎所有的艰苦工作,包括制定所有的政策。

我无法从文档中找到的一件事是如何启用 ClearQuest 策略,特别是“Transition to Complete After Delivery”标志。

关于如何做到这一点的任何建议?

以下相关部分mkproject.sh

cleartool mkproject -c "${PROJ_NAME}" \
 -in RootFolder@${PVOB} -model DEFAULT \
 -blname_template "component,date,time,basename" \
 -policy ${POLICY} -npolicy ${NEG_POLICY} \
 -crmenable ${CQ_USER_DB} -connection ${CQ_DB_CNXN} \
 -modcomp ${COMP_LIST} ${PROJ_NAME}@${PVOB} || \
    msg FATAL "error creating project ${PROJ_NAME}@${PVOB}"

在哪里:

POLICY='POLICY_INTRAPROJECT_DELIVER_FOUNDATION_CHANGES,POLICY_INTERPROJECT_DELIVER,POLICY_INTERPROJECT_DELIVER_FOUNDATION_CHANGES,POLICY_INTERPROJECT_DELIVER_ALLOW_NONMOD_TGTCOMPS,POLICY_REBASE_CO,POLICY_CHSTREAM_UNRESTRICTED,POLICY_UNIX_INT_SNAP' NEG_POLICY='POLICY_DELIVER_NCO_DEVSTR,POLICY_DELIVER_NCO_SELACT,POLICY_DELIVER_REQUIRE_REBASE,POLICY_INTRAPROJECT_DELIVER_ALLOW_MISSING_TGTCOMPS,POLICY_INTERPROJECT_DELIVER_REQUIRE_TGTCOMP_VISIBILITY,POLICY_CHPROJECT_UNRESTRICTED,POLICY_WIN_DEV_SNAP,POLICY_WIN_INT_SNAP,POLICY_UNIX_DEV_SNAP'

我怀疑我需要运行一些 post mkproject 命令。非常感谢您的帮助。

4

1 回答 1

0

我怀疑,如“何时使用 Rational ClearQuest 脚本而不是 UCM 触发器”中所述,您需要首先启用 ClearQuest 链接。
cleartool mkproject

 –crm/enable ClearQuest-user-database-name [–con/nection crm-connection ]

然后,可以启用任何 ClearQuest 策略,如“定制 Rational ClearQuest 项目策略”中列出的策略,其中包括UCM_CQActAfterDeliver_Def.
它表示交付后转换为完成的默认操作:请参阅“ UCM-ClearQuest 集成策略的功能

REM Start of Global Script UCM_CQActAfterDeliver_Def

Function UCM_CQActAfterDeliver_Def (entity_type, entity_id)

' This implements the default behavior when the "Do ClearQuest
' Action After Delivery" policy is enabled: It attempts to transition
' the entity to a Complete-type state, using default actions. Note that
' any missing mandatory fields for the Complete-type state will cause
' this script to fail.
'
' INPUT:
'  - entity_type: type of entity on which action will be executed
'  - entity_id: id (e.g. "SAMPL0000001") of entity on which action will be
'     executed
' OUTPUT:
'  - If the action was successfully executed, this returns an empty string
'  - If the action was not successfully executed, this returns a string
'    to be displayed as an error message.
于 2012-11-02T06:27:55.377 回答