Run IaC Scan
Once you have deployed the IaC plugin and authenticated, you can run scans on selected directories/templates.
-
On the Jenkins console, click New Item.

-
Enter the name and select the type of project. Select Freestyle project and click OK.

-
In the Build Steps, scroll down to Qualys IaC Scan.
-
Enter the required information:
- IaC Scan service/server endpoint - Select the configuration you created in Configure System.
- Scan Name - Enter a name for the scan.
- Compressed file path/directory to be scanned - Enter the path to the IaC template. The file extension must be .yml, .yaml, .json, or .tf.
-
You can choose to display Failed Results only, set the Build Failure conditions, and Timeout settings.
The Build Failure conditions let you set thresholds for when the build should fail based on the count of failed controls by severity:
- Fail if the count of 'High' failed controls is more than the specified value.
- Fail if the count of 'Medium' failed controls is more than the specified value.
- Fail if the count of 'Low' failed controls is more than the specified value.

-
Click Save.
-
Return to the Jenkins Console and click Build Now.
