I want to design a Jenkins job that will trigger when a pull request is created and perform a static code analysis only on the java files that have been modified.
I've already created a Jenkins job that is triggered on pushes and scans a repository for 1 error by following this video and cloning his repository to my bitbucket: https://www.youtube.com/watch?v=aRgYd-SLyrs. So far the job only works on the App.java file but I want it to work on only the files being pull requested. Has anyone done anything like this? I'm in the beginning stages so any kind of guidance will help.