|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
You received this message because you are subscribed to the Google Groups "Jenkins Issues" 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.

In registerExtension ( ) method , the ReleasePromotionCondition class, put a test whether the instance of DescriptorImpl class had already been added to the list , preventing duplication of the object condition. Also changed the return type of the newInstance () method of PromotionCondition to ReleasePromotionCondition in DescriptorImpl class.
public static void registerExtension() {
DescriptorExtensionList<PromotionCondition, PromotionConditionDescriptor> listPromotionCondition = PromotionCondition.all();
if(!listPromotionCondition.contains(DescriptorImpl.class)){ PromotionCondition.all().add(new DescriptorImpl()); }
}
public ReleasePromotionCondition newInstance(StaplerRequest req, JSONObject formData) throws FormException { return new ReleasePromotionCondition(); }