JENKINS-21750 refactor promoted builds support  into v1.26, v1.27