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.