Scan Scheduler Plugin for Jenkins
The Jenkins Scan Scheduler plugin enables you to schedule the scan of a codebase residing on the Code Insight scan server via the Jenkins scheduler. Before you install and configure the Jenkins Scan Scheduler plugin, ensure that the following prerequisites are met:
-
Jenkins must be installed and configured properly in your environment.
-
The project of interest must be set up in Code Insight. For information on creating a Code Insight project, see “Creating a Project” in the Code Insight User Guide.
To install the Code Insight Scan Scheduler for Jenkins, do the following:
- Sign into Jenkins CI.
- Navigate to Manage Jenkins > Manage Plugins > Advanced. The Upload Plugin dialog appears.
- Click Choose File and select the
code-insight-scan-scheduler.hpifile. - Click Upload.
- Restart the Jenkins server after uploading the plugin.
- Create a new Jenkins project:
-
Click New Item.
-
Enter a name.
-
Select a project type.
-
Click OK.
-
- To configure the project, select Add build step from the Build menu, and then select Schedule a Code Insight Scan. The Schedule a Code Insight Scan dialog is displayed.
- Enter the following information in the Schedule a Code Insight Scan dialog:
-
Server URL—The URL for the Code Insight Core server. For example,
http://codeInsightServer.myorg.org:8888/codeinsight/. -
Token—The JSON Web Token (JWT) used to authorize user access to the Code Insight functionality. Generate this token using the Code Insight Web UI and then copy and paste it in this field. For more information, see Providing an Authorization Token.
-
Project ID—The ID of the project that was created in the Code Insight Web UI.
-
- Click Test Connection to test your connection to Code Insight.
- Click Save. The next time you build, the scan will be scheduled on the Code Insight server for the configured project as part of the build.