How to Customize Checkout for Pipeline Multibranch?

JENKINS-37658 JENKINS-33022 JENKINS-31924