我有一个unix脚本,它允许我从命令行创建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_#en2#_NCO,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命令我需要运行。非常感谢你的帮助。
发布于 2012-11-02 06:27:55
我怀疑,正如"何时使用Rational ClearQuest脚本而不是UCM触发器“中所指出的,您需要首先启用ClearQuest链接。
请参阅cleartool mkproject
–crm/enable ClearQuest-user-database-name [–con/nection crm-connection ]然后,可以启用任何ClearQuest策略,如"定制Rational ClearQuest项目策略“中列出的策略,其中包括
它表示在交付后转换到完成的默认操作:参见"UCM集成策略的功能“
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.https://stackoverflow.com/questions/13187885
复制相似问题