How to add multiple BuildResultContributions to a RTC Build Record?
I am trying to add multiple BuildResultContributions to an RTC Build Record which is not working.
I tried 2 different approaches to handle this scenario:
- using ITeamBuildClient.addBuildResultContribution() method by passing IBuildResultContribution instance. In this case, if I have multiple contribution instances, I iterated through them and invoked this method multiple times in the loop.
- using ITeamBuildClient.addBuildResultContributions() method by passing an array of IBuildResultContribution instances. In this case, I created an array of the contribution instances and passed this array to addBuildResultContributions() method along with other additional arguments.
In both the cases, it didn't work. In the RTC Build record, I am getting only one Snapshot contribution inspite of having multiple values.
I am using RTC SDK 4.0.1 API to handle this.
Please let me know if I am missing anything in this case.
One answer
It would help if you described what you want to achieve.
Please use 'addBuildResultContribution site:jazz.net' in your search engine, there are several discussions where you might find hints. Some places to look at:
https://jazz.net/forum/questions/62642/add-log-to-build-result
https://jazz.net/wiki/bin/view/Main/BuildJavaProgrammingExamples
Please use 'addBuildResultContribution site:jazz.net' in your search engine, there are several discussions where you might find hints. Some places to look at:
https://jazz.net/forum/questions/62642/add-log-to-build-result
https://jazz.net/wiki/bin/view/Main/BuildJavaProgrammingExamples