我有一个unix shell脚本,允许我从命令行创建ucm项目(所以我不必回忆所有的开关,可以一次完成所有操作(项目,集成流,开发流等) 。))。
我可以致电mkproject.sh myproject-1@/vobs/my_pvob
,它可以为我完成所有艰苦的工作,包括设置所有政策。
我无法从文档中找到的一件事是如何启用ClearQuest策略,特别是“转移到交付后完成”标记。
有关如何完成此任务的任何建议?
以下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命令。非常感谢您的帮助。
答案 0 :(得分:0)
我怀疑,如“When to use Rational ClearQuest scripts instead of UCM triggers”所示,您需要先启用ClearQuest链接。
见cleartool mkproject
:
–crm/enable ClearQuest-user-database-name [–con/nection crm-connection ]
然后,可以启用任何ClearQuest政策,例如“Customizing Rational ClearQuest project policies”中列出的政策,其中包括 UCM_CQActAfterDeliver_Def
。
它表示在交付后转换为完成的默认操作:请参阅“Functionally of the UCM-ClearQuest Integration policies”
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.