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

Using Java to copy Build Engine including the password through IBuildEngine

I am trying to copy an existing Build Engine to be used with a new Build Definition. Making a copy does not duplicate the password used in the Build Agent Connection. How do I get the password and copy it over? I am not able to see any properties in the Build Engine via IBuildEngine.getProperties()


List<IBuildEngine> buildEngines = fetchResult.getRetrievedItems();
for (IBuildEngine buildEngine : buildEngines) {
    System.out.println("BuildEngine=" + buildEngine.getId());
    IBuildProperty[] buildEngineProperties = (IBuildProperty[]) buildEngine.getProperties().toArray();
    for (int j = 0; j < buildEngineProperties.length; j++) {
        String propName = buildEngineProperties[j].getName();
        String propValue = buildEngineProperties[j].getValue();
        System.out.println(propName + "=" + propValue);
    }
}


RTC 6.0.2, JRE 1.8

1

0 votes


Be the first one to answer this question!

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
× 10,950
× 411

Question asked: Mar 20 '17, 6:39 a.m.

Question was seen: 2,296 times

Last updated: Mar 20 '17, 11:44 p.m.

Confirmation Cancel Confirm