Jenkins Freestyle projects provide a UI-based approach to configuring build jobs without requiring Jenkinsfile scripting.
The Black Duck Security Scan Plugin provides the following features for use in Jenkins Freestyle projects:
- Provides UI fields for configuring scans for Black Duck® SCA, Coverity, Polaris or Software Risk Manager.
- Uses the server URL and access token from the Black Duck Security Scan Configuration page based on the selected product for scanning.
Limitations
Using freestyle jobs with the Black Duck Security Scan Plugin has the following limitations:
| Limitation | Description |
|---|---|
| Unsupported features | The following features are unsupported:
Note: For enterprise applications, Multibranch Pipelines are recommended with support for Pull Request scans and fix Pull Requests
|
| URL server and token override | The global server URL and access token parameters for a Black Duck product configured in the Black Duck Security Scan Plugin cannot be overridden in a pipeline job. |
Note: The following UI fields are mandatory when using a Coverity build step in a Black Duck Security Scan Plugin freestyle job:
- Project Name
- Stream Name
Create a freestyle project
To create a Jenkins Freestyle Project:
- Select from the top left menu displayed in the Jenkins Dashboard.
- Enter an item name.
- Select .
- Click OK.
Configure a freestyle job
To configure a freestyle job for Black Duck Security Scan Plugin:
- Go to the section on your job's configuration page and select .
- Enter the Repository URL.
- Select your credentials from the dropdown menu. If you haven't configured your credentials, do the following:
- Click the dropdown menu.
- Select .
- Provide your scm username and enter your access token in the password field.
- Enter your branch name in the field.
- Accept the default values for .
- (Optional) To restrict which node this project runs on, select and provide your agent label as .
- Click in the section.
- Select from the dropdown menu.
- Select the security product from the dropdown menu and complete the required UI fields for that product.
- Click and .
- Click to build the freestyle job.