RTC enterprise package extension
Hi All,
I have seen the IBM Rational Team Concert 4.0 extensibility workshop, which shows how to create a work item and on a particular state trigger off a build. I would like to do almost the reverse in that I want to trigger off the build and test the work item, but I only want to allow the build to happen if the work item is in a particular state. (i.e. completed)
I will be doing IBMi dependency builds (the solution would be the same as Java/Visual Studio as I assume I would test the source work items), but they might be scheduled late at night and therefore I need to attach this extension to the 'request build operation'. Can an extension be a pre-condition for any operation (i.e. build, package, deployment and work item etc)?
The same condition would apply for packages, in that the item would not package if any work item was not in the correct state. For example, I would create a package for a new release and as part of the shipping list, I would select various work items (work item packaging) and let RTC work out the objects to package. They could be Java and/or RPG objects either way the package would be defined the same. I would then need to test all the work item states and if one of them is not completed, then the package is not created.
Has anyone tried this situation (i.e. what Java API and classes to use)?
Many thanks
James
2 answers
I guess you would have to hook into request Build (server). I have listed some links at http://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ especially https://jazz.net/wiki/bin/view/Main/CustomPreconditionsTable#operations for the operation ID's. Except of https://jazz.net/library/article/807 I haven't done a lot with the build API yet.
Robin Bobbitt posted some more around build here: http://ryehle.wordpress.com/
Robin Bobbitt posted some more around build here: http://ryehle.wordpress.com/
For packaging we already have this kind of precondition out of the box. You can add the precondition "Require Work Item States". The packaging will fail if any of the work items to package are not in the one of the work item states required by the precondition.