thanks. let me quickly check and get back regards
On Thu, Jul 3, 2014 at 9:37 AM, domi <[email protected]> wrote: > I think you can do that with the "flexible publish" plugin - the name is > quite miss leading, but it enables the same conditions on post build > actions as the conditional buildstep plugin for normal steps. > https://wiki.jenkins-ci.org/display/JENKINS/Flexible+Publish+Plugin > > Am 03.07.2014 um 02:12 schrieb Irfan Sayed <[email protected]>: > > hi, > greetings!!! > > i need to enable the post build action at runtime > it means that, if i have boolean parameter and if the value is set to true > then automatically > post build action "ediatble email notifiction" should get added in the > post build section of the job. > > for that, i have written one plugin, however, it seems not working > > here is what i have done : > created class who extends Publisher > > public class EmailPublisher extends Publisher { > private AbstractProject job; > @DataBoundConstructor > public EmailPublisher(AbstractProject job) > { > this.job = job; > } > public AbstractProject getJob() > { > BuildListener listener = null; > Map<Descriptor<Publisher>, Publisher> map = > job.getPublishersList().toMap(); > listener.getLogger().println(job); > for (Publisher ab : map.values()) { > listener.getLogger().println("Actions > are:"+ab.getDescriptor().getDisplayName()); > > } > return job; > } > > can you please review ? > i am stuck > > regards > > -- > 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/d/optout. > > -- > 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/d/optout. > -- 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/d/optout.
