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

API to retrieve scheduled builds - build time

There are hundreds of builds definitions in RTC which are scheduled builds and we want to use API to retrieve the scheduled build time to know what time those builds are scheduled every day.
There are two type of scheduled build time here: one is 'continuous interval in minutes' and another one is At a specific timestamp.
getBuildSchedule() method does not seem to return the scheduled build time so I am wondering if there is any API(s) we can use to get that info? (we are going to upgrade to 6.0.4 from 4.0.7 soon)

Appreciate if anyone may help in this request. Thanks a lot.

0 votes

Comments

Don,
I have fiddled some with Build / Build Definitions in Client API but not with the schedule in particular. So I will just write the generic approach I would use as a comment:
1. Go to RTC Eclipse Client
2. Open Build Schedule for a Build Definition
3. Use Shift+Alt+F1 to spy on what plugin classes are used
4. Alternatively use YARI
Once you have class names Java Search in a Workspace set up for RTC plugin development and you have a fairly good chance to find test classes utilizing that code and e.g. test the scheduler. This should give you a rough idea of the calls in question. Usually server side code looks somewhat similar but in this case might only be client side, since Eclipse is used for build scheduling.
Good luck hunting & I hope you get a more complete answer from sb else

1 vote

Thanks Ulf for the comment.


Accepted answer

Permanent link

Don,

In Java (Eclipse), if you set it up with the SDK you can relatively easily see what gets returned e.g. by com.ibm.team.build.common.model.IBuildDefinition.getBuildSchedule().

Follow https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ and setup Eclipse with the SDK and Plain java APIs and use the Eclipse editor, Search>Java and all the advanced stuff you have available.

getBuildSchedule() returns com.ibm.team.build.common.model.IBuildSchedule which is composed of com.ibm.team.build.common.model.IBuildScheduleEntry 's

That way you can access the schedule information from the build definition.
If you are interested in the more realistic times from the build results, go to https://rsjazz.wordpress.com/interesting-links/ search for Build Automation and follow the first and the other links to API examples.

Don Yang selected this answer as the correct answer

2 votes

Comments

Thanks Ralph for the details.

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

Question asked: Aug 29 '17, 6:47 a.m.

Question was seen: 663 times

Last updated: Sep 07 '17, 3:09 a.m.

Confirmation Cancel Confirm