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

Modify a Jenkins build def using java api

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     

0 votes



One answer

Permanent link
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

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

Question asked: May 04 '15, 3:25 p.m.

Question was seen: 5,217 times

Last updated: May 07 '15, 12:51 p.m.

Confirmation Cancel Confirm