I am developing an jenkins plugin. I wonder whether there is a way to 
temporarily remove or disable a publisher ? For example, if I execute 
*publishers.remove(fp), *then this publisher will lost permanently.
Is there a way to only temporarily remove or disable it ?

AbstractProject project = build.getProject();
DescribableList publishers = project.getPublishersList();
final Fingerprinter fp =  (Fingerprinter) publishers.get(hudson.tasks.
Fingerprinter.class); 
publishers.remove(fp);


-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/0ee40860-571a-4f56-bf15-1f7e619aef64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to