Add checkout to build json stage to get `ci.psm1` (#16399)