Import your projects and server settingsWith the new Klocwork server installed and the portal up and running, you can import server settings and projects from your existing Klocwork installation. When you import server settings from the existing source server, all global permission settings are imported along with the permission settings for only those projects that exist on the destination server. In other words, if you import Server A's settings to Server B, then you import a project from Server A to Server B, any permission settings that are specific to project A will not be carried over to Server B. To carry forward project A's project-specific permission settings, you must re-import the server settings after performing the import operation. Important: In cases where a project contains custom settings, you must re-import your server settings after performing a project import.
Note also that when importing a projects_root that contains a large number of issues and builds, your new projects_root may increase in size. To import your existing projects:
It is important to verify the permissions for each project since at import time, permissions are merged between source server and destination server. You should repeat this process after each import operation, and you must be careful to re-import the server settings for each source server that you import from. Note: If you are running Windows in a 32-bit environment and you previously modified the memory allocation file located at <old_Klocwork_install>/config/java_wrappers_memory.conf, verify that you still need those modifications and make the same changes to java_wrappers_memory.conf in the new installation.
Use the Web API to import your projectsYou can use the Klocwork Web API to import your projects on the command line. The Web API requires Web API access permissions. By default, the Project admin role and the Projects root admin roles have access to the Web API. The following example shows a curl script to import a given project: curl --data "action=import_project&user=myself&project=my_project&sourceURL= http://oldserver:8080&sourceAdmin=user&sourcePassword=pwd" http://localhost.mycompany.com:8080/review/api where:
To return a list of all projects in the source projects_root folder, run the following command: curl --data "action=projects&user=myself&" http://localhost.mycompany.com:8080/review/api You can also use the Web API to import your server configuration settings: curl --data "action=import_server_configuration&user=myself&sourceURL= http://oldserver:8080&sourceAdmin=user&sourcePassword=pwd" http://localhost.mycompany.com:8080/review/api Typically these operations are scripted using a language such as Python. See the Klocwork Web API cookbook for examples of scripted curl calls using Python. Import taxonomy file(s)If you imported a custom taxonomy, for example, MISRA, in a previous release, you need to re-import the new taxonomy file to pick up changes. See What's new for a list of changes to the taxonomies. If you're using MISRA checkers, you'll also need to copy the misra.checkers.zip file from the <server_install>/taxonomies folder into the <projects_root>/plugins folder. |