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
![]()
Ralph Schoon (62.3k●3●36●43)
| answered Feb 26 '13, 7:08 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Feb 26 '13, 9:20 a.m.
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/ Comments Another option would be to extend the JBE as Robin describes in her blog and to cancel builds if they should not run.
Thanks for this.
I will look into these in more detail.
|
![]()
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.
Comments Hi Kevin,
Funnily enough I just found this just before you post.
So the question is that will this be made available for deployment?
Thanks
James
We don't have any plans currently. I don't see an Enhancement at quick glance for this, but we have an Enhancement for the follow up actions that packaging has to be made available for Deployment.
Hi Kevin,
So I can see how to create an extension that will enable me to use it on a deployment and/or package request. However, it looks like the dependant files are not available to use. Is this correct?
Also I cannot find any documentation on extending the package and deployment options in the process configuration. Is there any documentation on this?
Also is the extensibility of the build toolkit supported?
Thanks
James
Hi James,
|