Add new Custom step for Self Promotion Condition to be included in the Declarative Pipeline.
The returning function name would probably be : "selfPromote" which would take "job" and "buildNumber" as its input parameters.
*The Task would be marked complete when:* * a new class for selfPromote is made with right ParameterValues sent to SelfPromotion.java and the new PromotionProcess class.