Adding security analysis to your Jenkins automation server
The HCL AppScan Jenkins plug-in allows you to add security scan support to your Jenkins projects.
Before you begin
About this task
Procedure
-
In Jenkins, install the HCL
AppScan plug-in:
- Select Manage Jenkins and then Manage Plugins.
- Select the Available tab and then select the check box next to HCL AppScan.
- Click one of the installation buttons at the bottom of the page. After installing the HCL AppScan plug-in, you must restart Jenkins before using it. However, you may want to install it and then restart Jenkins later (for example, if you have running jobs).
Note:Depending on the version of Jenkins that you are running, these steps may vary slightly. -
After restarting Jenkins, add credentials so that your build project can
connect to AppScan on Cloud:
- In the Jenkins dashboard, select Credentials.
- In the Credentials page, add new global credentials. To do this, select the arrow icon next to the (global) link and then select Add credentials.
- In the credentials page, select HCL AppScan on Cloud/HCL AppScan 360° Credentials in the Kind list.
-
Specify an AppScan on Cloud server URL for the connection. By
default, the URL is
https://cloud.appscan.com. - When you generate an API key in the AppScan on Cloud service, you receive a Key Id and Key Secret. Enter these values in the ID and Secret fields. If you have not yet generated an API key, follow the link for creating one.
- Optional: Use the Label field to add an identifier for the credentials.
-
In the Jenkins dashboard, select your Jenkins project to edit it and then click
Configure. Complete these steps in the project's General tab:
- After you run your Jenkins project, if you open the build, you will see a snapshot of security findings. In addition, Results links for the security tests will be available. Clicking on these will open the non-compliant security report. In the project's main status page, you will see a trending graph of security analysis results when you have more than one set of results.