On 10/08/2013 12:48 AM, Yves Schumann wrote:
Hi
after using Jenkins a long time now, it's time to write my first plugin. :-) I
Yay! Welcome!
need to add a new entry to the list of options for a parameterized build. That's
not the problem and all necessary configuration options are already implemented
and usable.
Now I'm struggling with the problem, that there must be some steps performed
between the click on "Build with parameters" to start the job and the next step
which shows the parameter screen. To be more detailed, my plugin needs to
prepare a list of options, from which the user who triggers the build, must
choose one. This list can only be prepared after starting the job, so no chance
to setup it during job configuration.
I'm bit confused here.
The former part of this seems to imply that you just want some
multi-page wizard to fill in parameters. I wonder you can effectively
achieve the same result by having some controls update its options based
on the selection of other controls. There's a number of places in
Jenkins that does this, and UI samples plugin has a good example of this.
The latter part seems to indicate that you want to pause the build after
it gets going, to receive human input. Then you can bring the build to
the completion.
Jenkins isn't really good at suspending a build in progress, in the
sense that it'd waste precious executor, but that can be done from a
BuildStep. I do this in
https://wiki.jenkins-ci.org/display/JENKINS/Remote+Terminal+Access+Plugin to
prevent the build from getting completed.
Until now I'm unable to find out, how to do this. Maybe it's too easy but please
let me know how to trigger code on my plugin implementation right between
triggering the job but before the parameter screen is opened. Thx a lot in
advance.
Kind regards,
Yves
--
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].
For more options, visit https://groups.google.com/groups/opt_out.
--
Kohsuke Kawaguchi | CloudBees, Inc. | http://cloudbees.com/
Try Jenkins Enterprise, our professional version of Jenkins
--
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].
For more options, visit https://groups.google.com/groups/opt_out.