It's all about the answers!

Ask a question

RTC 1.0 Changing Build numbers via API


mordechai lehrer (621) | asked Jun 07 '09, 5:18 a.m.
Hi,

Where can I find some examples of using the API to manipulate enumeration values and interact with the Jazz build engine?

I'm currently using Cruise Control to manage builds and would like to inform a separate RTC server that a new build is available and populate respective drop downs for bug and work item purposes.

Any help is appreciated.
Mordechai

3 answers



permanent link
Jean-Michel Lemieux (2.5k11) | answered Jun 07 '09, 8:16 p.m.
JAZZ DEVELOPER
We don't have any ant tasks "out of the box", but this should be possible without much trouble. You could create a couple of ant tasks which call the plain java APIs.

For help, see the 1.0 SDK at:

https://jazz.net/wiki/bin/view/Main/RtcSdk
https://jazz.net/wiki/bin/view/Main/ClientLibrarySetup

There are examples of using the build APIs:

https://jazz.net/wiki/bin/view/Main/BuildJavaProgrammingExamples

Evan on my team is also working on extending some of the build support for custom scm tasks, this is against 2.0, but the ideas can be applied to 1.0.

https://jazz.net/wiki/bin/view/Main/SCMUsingTheCliInBuilds

Cheers,
Jean-Michel

permanent link
mordechai lehrer (621) | answered Jun 22 '09, 8:24 a.m.
Thanks, we succeeded.

permanent link
Nick Edgar (6.5k711) | answered Jun 22 '09, 12:04 p.m.
JAZZ DEVELOPER
Glad to hear. I should clarify, though, that there are existing Ant tasks to create/start a build result, report activity progress, add contributions, and mark it complete.

See the startTeamBuild, startBuildActivity, and completeTeamBuild tasks, and the various publishing tasks, in the Jazz build Ant task reference.
This is available in the Eclipse client Help, or here:
http://jazz.net/help/rational-team-concert/1.0.1/topic/com.ibm.team.build.doc/topics/r_ant-tasks.html

Your answer


Register or 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.