diff --git a/core/src/main/java/hudson/model/Project.java b/core/src/main/java/hudson/model/Project.java index bd5429a469..48189b9c1b 100644 --- a/core/src/main/java/hudson/model/Project.java +++ b/core/src/main/java/hudson/model/Project.java @@ -130,6 +130,9 @@ public abstract class Project

,B extends Build> /** * Adds a new {@link BuildStep} to this {@link Project} and saves the configuration. + * + * @deprecated as of 1.290 + * Use {@code getPublishersList().add(x)} */ public void addPublisher(Publisher buildStep) throws IOException { publishers.add(buildStep); @@ -137,6 +140,9 @@ public abstract class Project

,B extends Build> /** * Removes a publisher from this project, if it's active. + * + * @deprecated as of 1.290 + * Use {@code getPublishersList().remove(x)} */ public void removePublisher(Descriptor descriptor) throws IOException { publishers.remove(descriptor);