This backports the EE changes to Gitlab::Ci::Model back into CE, ensuring the code is the same for both versions.