Programmatically setting build engine on Build Definition
Hi,
How might I do this? I saw a post on how to set the workspace, but I've looked through what can be set with IJazzScmConfigurationElement and build engine isn't one of them. Perhaps with IBuildDefinition.setConfigurationProperty?
setConfigurationProperty(java.lang.String elementId, java.lang.String name, java.lang.String value)
Set the value of the configuration property with the given name in the configuration element with the given id. I can't work out what elementId would be. |
One answer
Hi Michael,
You need to add a build definition to a build engine's list of supported build definitions. See com.ibm.team.build.common.model.IBuildEngine.getSupportedBuildDefinitions(). If you can download the SDK for your RTC release, you can see an example in com.ibm.team.build.internal.ui.editors.builddefinition.GeneralConfigurationEditor.addSupportedDefinition(String). Hope that helps, Scott |
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.