Hi,
Here are the steps which I followed,
This involves knowledge on git, gerrit & Jenkins
1. Download the aosp code and put it on gerrit server. Create your own branch and change the .repo/manifests/default.xml to refer to your gerrit server.
2. Now write the Jenkins job to go and check this gerrit server for any new checkins on this new branch
3. If there are checkins, make the build and see if CI is pass in Jenkins.
You can check
Thanks.