Refactor CI/CD config processor to use job policy specifications
The following discussion from !13849 (merged) should be addressed:
-
@grzesiek started a discussion: We need to refactor this, there is a lot of room for improvement here.
We should use job policy specifications
specifications.all? { |spec| spec.satisfied_by?(pipeline, metadata) }
Edited by Grzegorz Bizon