Creating a Jenkins build definition in RTC 5 by plain API?
I am trying to create a build definition to RTC for a new Jenkins job using the plain API. I found the information in this question from 2014 helpful to a certain point: https://jazz.net/forum/questions/137478/possible-to-create-hudsonjenkins-build-def-via-api
Using the code:
IBuildDefinitionTemplate[] templates = BuildConfigurationRegistry.getInstance().getBuildDefinitionTemplates();
for (IBuildDefinitionTemplate t : templates) {
LOGGER.debug("Found template {}, {}", t.getName(), t.getId());
}
Like Todd I am able to see the Ant, Command line, Maven, Generic, and Jazz Build for Microsoft Visual Studio Solution templates. I see in his solution that he was able to find the Jenkins template in the SDK jars:
com.ibm.rational.connector.hudson.client_1.0.400.v20130502_0139.jar
com.ibm.rational.connector.hudson.common_1.0.400.v20130430_2233.jar
com.ibm.rational.connector.hudson.ui_1.0.400.v20130502_0139.jar
I have attempted to add these from both the 4.0 and the 5.0 SDK to my project, but I am still unable to locate the Jenkins "com.ibm.rational.connector.hudson.ui.buildDefinitionTemplate" that Todd found.
Am I missing something obvious here, such as additional jars from the SDK required?