It's all about the answers!

Ask a question

Modify a Jenkins build def using java api


K M (38325251) | asked May 04 '15, 3:25 p.m.
I wish to change the rtc workspace parameter in a jenkins build def.
I assume I would see the property running the following code
        List <IBuildConfigurationElement> elements = buildDef.getConfigurationElements();
        for (int k = 0;k < elements.size();k++){
            System.out.println("name " + elements.get(k).getName());
            System.out.println("id " + elements.get(k).getElementId());
            List  <IConfigurationProperty> props = elements.get(k).getConfigurationProperties();               
            for (int i = 0;i < props.size();i++){
                String name = props.get(i).getName();
                String value = props.get(i).getValue();
                System.out.println("name:" + name + "---value:" + value);
            }
            System.out.println("************************************************");
        }
 The output is the following for jazz source control element.
name Jazz Source Control
id com.ibm.team.build.jazzscm
name:com.ibm.team.build.engine.variable.substitution---value:
************************************************
I assume I am missing something  which give me the source control props     

One answer



permanent link
K M (38325251) | answered May 07 '15, 12:51 p.m.
see
https://jazz.net/forum/questions/180370/can-the-rtc-workspace-be-changed-in-a-builddef-using-the-java-api?redirect=%2Fforum%2Fquestions%2F180370%2Fcan-the-rtc-workspace-be-changed-in-a-builddef-using-the-java-api

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.