[JENKINS-22969] Extract keep-build