Does anybody has experience on how to reset the order of newly added build 
step ? I found there is an getBuildersList().set method  but it is not 
working.
Here is my code. Any advice is appreciated. 

FreeStyleProject p = (FreeStyleProject) build.getProject();
ORIGIN_BUILDER = (CommandInterpreter) builder;
NEW_BUILDER = new Shell("echo hello");
p.getBuildersList().remove(ORIGIN_BUILDER);
p.getBuildersList().add(NEW_BUILDER);

p.getBuildersList().set(0, NEW_BUILDER);    // Not working.
p.save();

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/86e9eead-e8d9-4ff5-acc8-754866b6afae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to