You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install PMD. Please refer to their website for instructions.
Unless you've unzipped the PMD archive file to ~/bin/pmd-bin-6.44.0/, you'll have to tell imhotep_pmd where to find the executable. This can be achieved by providing a imhotep_pmd.toml at the root directory of the repo you want to run PMD against. The file should contain this line that specifies the command used to invoke PMD:
This section walks you through the process of setting up a Jenkins job that automatically run PMD and post review comments to new pull requests (PRs) in a specific GitHub repository.
Under General, tick This project is parameterized, and then add these parameters:
Under Source Code Management, tick Git, and then configure it like this:
Under Build Triggers, tick GitHub Pull Request Builder, and then configure it your way.
Under Build Environment, map your GitHub PAT to the environment variable GITHUB_PASSWORD:
If you haven't, you can add the credential to Jenkins like this:
Under Build, add a step Execute shell. Populate it with the content of jenkins.sh.
Your Jenkins jobs should now automatically run PMD and post review comments whenever a PR is opened.
Development
This project uses Poetry to manage dependencies and to package itself.