Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



2 answers

Permanent link
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/

0 votes

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.


Permanent link
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.

0 votes

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. 

The "modify work item state" follow-up action should be available for deployments just as it is for promotions (179138)

Feel free to open an Enhancement request if this is something you would like to see.

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,

The Enterprise Extension plug-ins are not part of the RTC SDK.  Others have been manually adding them from the client/server when developing extensions.

We don't have any documentation for extending the EE functionality as we are not part of the RTC SDK.  Since Packaging/Deployment are built on top of the Build component it is best to look at the Build docs for information. 

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,952
× 369
× 57
× 10

Question asked: Feb 26 '13, 6:52 a.m.

Question was seen: 8,699 times

Last updated: Jul 04 '13, 5:59 p.m.

Confirmation Cancel Confirm