Ant task to create Work Items/Deployment Requests/etc?
Hi All.
Do we have them? Is there a means to be able to autoamtically create Work Items? I'd like to be able to create a Deployment Request etc, when I complete my builds. -Chris |
5 answers
Hi Chris, Hello. Are there any plans to do so? I am surprised that they do not exist, as I'd have found them somewhat fundamental. -Chris Comments Chris,
hm.. this sounds like fun!.. never created an ANT task
what are the redistribution rules for plain java libs?
|
Ralph Schoon (63.6k●3●36●47)
| answered Oct 31 '11, 4:35 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Chris,
I am not aware of such a task. You can create work items using OSLC or using Java and the Plain Java Client Library. How to create work items is outlined here: https://jazz.net/wiki/bin/view/Main/ProgrammaticWorkItemCreation |
Ralph Schoon (63.6k●3●36●47)
| answered Nov 15 '11, 2:05 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Chris,
Since not all builds are meant to be deployed, except if you have an automated test bench, I would suggest to open the build result of the public build, review it and then use the link "Create a work item for this build" to create the work item if it is supposed to be deployed. The work item will be automatically linked to the build result providing all necessary information for the release engineer. Why creating work items for builds that does not need deployment? |
Ah. I can see coming from an Ant centric mode of thinking, how you'd think this.
But in this case, it's a bad assumption. We're using Maven, a somewhat more advanced/elegant tool. It has the concepts of build _phases_. Compile, Package, Install (to a local maven repository) and deploy (to a remote maven repository - not an actual deployment of code into an environment). We only use the deploy phase when performing a formal release (against a tag). So, I'd tie the maven ant-run plugin (to execute said non-existant ant tasks) to the deploy phase, so that it only runs when performing a formal release. We only do this when we want to actually deploy the code into a non-dev environment, potentially all the way up to production. So, in this way, I'd be removing manual processes, automating them, only crating the work items, when necessary. Additionally, and this is the bit that really surprises me, is that I'd like to open a Defect Work Item against the developer broke the build. That would be something that could be done for each build etc. I hope you get the idea. -Chris Hi Chris, |
Ralph Schoon (63.6k●3●36●47)
| answered Nov 16 '11, 3:50 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi,
as already mentioned, as far as I know that ant task does not exist as far as http://publib.boulder.ibm.com/infocenter/clmhelp/v3r0m1/topic/com.ibm.team.build.doc/topics/r_ant-tasks.html goes. The WorkItemPublisher publishes the work items related to the changes to the build result. You can easily use the Plain Java Client Library also called Plain Java API in some places to create a work item as mentioned already in the first answer. See here: https://jazz.net/wiki/bin/view/Main/ProgrammaticWorkItemCreation The Plain Java Client Library can be downloaded from the all download pages e.g. https://jazz.net/downloads/rational-team-concert/releases/3.0.1.1/RTC-Client-plainJavaLib-3.0.1.1.zip New is the API documentation: https://jazz.net/downloads/rational-team-concert/releases/3.0.1.1/RTC-Client-plainJavaLib-API-javadoc-3.0.1.1.zip This is the code you want to use. It is only very basic but can be extended easily to add more attributes. The Extending Team concert forum is where this is discussed. There is also example code for how to set other work item attributes. You could also create a work item here https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWelcome in case you think this is essential. I agree it would be a nice ides so I looked for a work item, but did find only this https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=34443 . I added your case.
|
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.