I have a unix shell script which allows me to create ucm projects from the command line (so I don't have to recall all the switches and can do it all in one shot (project, integration stream, dev stream, etc.)).
I can call mkproject.sh myproject-1@/vobs/my_pvob
and it does almost all the hard work for me, including setting all the policies.
The one thing I have not been able to find out from the documentation is how to enable the ClearQuest policies, specifically "Transition to Complete After Delivery" flag.
Any suggestions on how to accomplish this?
relevant portion of mkproject.sh
below:
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}"
where:
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'
I suspect there is some post mkproject command I need to run. Your help is most appreciated.