Follow these steps to define a freestyle project and use Sigma as a quality gate:
- In the main Jenkins dashboard, click New Item and select FreeStyle Project.
- Specify the name of the project.
- Select Execute Black Duck Rapid Scan Static from the list of build steps.
-
Select which Sigma Tool should be used.
Pick the Sigma tool that is compatible with the operating system of the Jenkins agent in use with the build.
The Sigma tool installs Sigma on the Jenkins agent if you opted for automatic installation when Sigma was configured as a Jenkins tool.
-
Uncheck the Ignore Policies checkbox.
If a .sigma-policy.yml file is present in the Jenkins workspace, that policy file is used by default. Otherwise, you can submit a .sigma-policy.yml file to define policies for a quality gate into your source code repository .
If you would like to use a policy file other than .sigma-policy.yml, please see Setting Sigma Policy Files.