The Jenkins plugin for Ocular allows you to automate code analysis during the build process using Ocular.
This article assumes that you have installed Jenkins and have an existing Pipeline project.
Setting Up the Jenkins Plugin for Ocular
Next, set Jenkins to run Ocular as a final build step in a Pipeline project by adding the following to your Jenkinsfile:
slOcularScan requires several parameters; be sure to change them as appropriate during configuration:
|The link to the file you want analyzed|
|Optional. Whether you want a ThreadFix file generated|
|Optional. Whether you want debugging information|
|Optional. Any parameters you want included in your command to run Ocular|
|Your ShiftLeft Organization ID. Can be found in the Dashboard under Account Settings|
|Your ShiftLeft Access Token. Can be found in the Dashboard under Account Settings|
Once you've configured the plugin, you can run a build to see the results.