Configure Plugin for Freestyle Projects
The configuration settings are the same as those for the Pipeline Project. For detailed configuration, refer to Configure Plugin Pipeline Project.
Perform the following steps to create a Freestyle Project:
- Click Post-build Actions tab and Go to Post-build Actions section.
- Select Scan host or instances with Qualys PC option from the Add post-build action drop-down menu.
- Provide the following configuration details:
- Provide your login account credentials to access the Qualys PC API server on the Qualys cloud platform.
If your Jenkins server is behind a firewall, select Use Proxy Settings to provide proxy information. - Click Test Connection to verify that the plugin can connect to the Qualys PC API server.
- Provide parameters: scan name, target host IPs, or AWS EC2 information required to call the launch scan API.
For Host/AssetIP and EC2 Instance ID, you can also specify an environment variable in this format: env.{variable name}
For example:
If your environment variable name for Host IP is 'hostIp' then the input for the Host IP field should be env.hostIp.
If your environment variable name for EC2 Instance ID is ec2Id then the input for the EC2 ID field should be env.ec2Id.
- For the PC plugin, only authentication record creation is optional. Scanner and Option Profiles with at least one policy are required parameters.
- Configure scan Pass/fail criteria. You can fail a build by state and criticality of the control and authentication result.
- Provide data collection frequency and timeout duration for the running scan.
- Click Save.
- Provide your login account credentials to access the Qualys PC API server on the Qualys cloud platform.