Add Build to queue ad set parameters for that particular build

HI,

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

    buildType.addToQueue(securityContext.getAuthorityHolder().getAssociatedUser().getUsername());


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

Thanks,
detlef

2 comments
Comment actions Permalink

Hi Detlef,

Seems, this thread: http://devnet.jetbrains.net/thread/290589 answers this question.
Since 7.0 there is also an open API for that approach, see http://youtrack.jetbrains.com/issue/TW-13470#comment=27-289473

0
Comment actions Permalink

Excellent. Thanks.

0

Please sign in to leave a comment.