- After Parsing Trigger Policy that comes in Artifact API
- Store Result (PASS/ FAIL) of Quality Gate W.R.T to Policy ID and Asset Name, Branch, Run ID, Commit ID, Run Number
- Expose a New Enpoint `get-policy-result` with above params, with having statuses as:
CI can Poll Result from Endpoint (get-policy-result)
If POLICY PASSED then PASS the Pipeline
else if PENDING RESULT, sleep for 10 mins or X mins, send request again
then POLICY FAILED means Pipeline Failed