Using the Plug-in in a Pipeline Job
Use pipeline steps in the Polaris plug-in.
The Polaris Software Integrity Platform for Jenkins plugin provides two pipeline steps:
- polaris: Runs the Polaris CLI to initiate Polaris analysis of your project.
-
polarisIssueCheck: Waits until Polaris has completed the analysis of your project, and determines the number of issues found. Note: For polarisIssueCheck, the timeout in minutes field requires a positive integer. Values that are not integers may be truncated by Jenkins before being passed on to the plugin.Refer to Jenkins Pipeline steps documentation about using these pipeline steps.