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

How to update build definition property values with RTC Java API

I have a build definition to which I've added a property name.  For specific build instances using that build definition, I want to pass a value on that property name to control certain aspects of the build. I would like the value use to be "one instance only". Can I programmatically remove the value using the RTC Java API, or some other technique?

1 vote



One answer

Permanent link
Found it.

IBuildDefinition definition = (IBuildDefinition) buildDefinition.getWorkingCopy();
definition.setProperty("propertyName","");
definition = buildClient.save(definition, monitor);

2 votes

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
× 12,022

Question asked: May 01 '13, 7:58 a.m.

Question was seen: 5,768 times

Last updated: May 07 '13, 7:49 a.m.

Confirmation Cancel Confirm