Determines if any policy is violated and if any violated policy requires build to break
Policy evaluation API requires reportId. Added function for the same.
Enhanced ScanSummary to propagate policy violation and break the build to the plugin
5.Some plugin use different function to print policy violations , enhanced same.
References
1853
Testing
Tested SCA scan that violates policy with break the build
Tested SCA scan that violates policy in more than one policy but one has break the build
Tested SCA scan that does violate any SCA policy
Tested that policy evaluation and display happens only when config.getEnforcePolicyViolations is enabled
Description
References
1853
Testing
Checklist