Recommendation for using Jenkins to do Policy Management

CyberArk recommendation is to use Source code repository for storing the policy files and have a pipeline setup for updating the policy. I wanted to setup some ideas and thoughts on utilizing Jenkins to do the policy management. Should Jenkins make a REST API calls for updating policy or it should kick off a script which will load the the policy files through CLI? Any examples or suggestions will be helpful.