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
Please sign in to leave a comment.
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
Excellent. Thanks.