Add Build to queue ad set parameters for that particular build


I try to run a new build on a buildConfiguration. For that in my plugin I search a build configuration.

SBuildType buildType = project.findBuildTypeByName("run");

On that buildType I have parameters defined as 'prompt text' parameters.
Now I need to proggramatically set parameters to a new run of that build.
If I call

buildType.addParameter(new SimpleParameter("X", "some value"));

this parameter is added to the build configuration. It is present on the build configuration even after calling


Is there a way to add a build parameter to a particular build only and not the the build configuration ?


Comment actions Permalink

Hi Detlef,

Seems, this thread: answers this question.
Since 7.0 there is also an open API for that approach, see

Comment actions Permalink

Excellent. Thanks.


Please sign in to leave a comment.