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

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?

0 votes



One answer

Permanent link
see https://jazz.net/forum/questions/137478/possible-to-create-hudsonjenkins-build-def-via-api
net, the jenkins stuff is an extension to the base build engine/def stuff, so you have to include another couple jar files

0 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
× 6,121
× 562
× 382
× 151

Question asked: Jun 16 '16, 11:10 a.m.

Question was seen: 3,382 times

Last updated: Jun 17 '16, 11:36 a.m.

Confirmation Cancel Confirm