It's all about the answers!

Ask a question

Hudson Jenkins build engine missing in plain java api

Steffen Kriese (381921) | asked Jun 03 '14, 10:08 a.m.
retagged Jul 02 '14, 3:11 a.m. by Colin Thorne (22421619)
I want to create a Jenkins build engine via plain java API.
When running this code against my RTC 4.0.6 server:
IBuildEngineTemplate[] buildEngineTemplates = BuildEngineConfigurationRegistry.getInstance().getBuildEngineTemplates();
            for(IBuildEngineTemplate buildEngineTemplate :  buildEngineTemplates)
IBuildConfigurationElement[] buildConfigurationElements = BuildEngineConfigurationRegistry.getInstance().getBuildEngineConfigurationElements();           
            for(IBuildConfigurationElement buildConfigurationElement:  buildConfigurationElements)

I get the following output:
Jazz Build Engine
This build engine registration represents a Jazz Build Engine or other process on a build machine that polls the repository for build requests.
General configuration such as the polling interval. This configuration is edited on the Overview tab of the build engine editor.
Generic properties that are available to build scripts. The properties are edited in the Properties section of the build engine editor.

for me this looks like there is only a JBE build engine template available.

When listing the build engine templates in the create new build engine wizard I have in addition the "Jazz Build Engine" also a Hudson/Jenkins build engine and a build forge engine listed. How can I create a Hudson/Jenkins Build engine in the plain java api?

One answer

permanent link
Colin Thorne (22421619) | answered Jul 01 '14, 9:50 a.m.
I used the instructions in this answer to be able to list the Hudson/Jenkins definition. In particular I added three jar files to my classpath which I found in my eclipse plugin directory:

Now I see an additional template:
Hudson/Jenkins Engine
Create a representation of Hudson/Jenkins build system in RTC.

Your answer

Register or 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.