Cross-version support for buildsKlocwork has decoupled the Build Server version from the Klocwork Server. Therefore, you can use older build server tools with newer versions of the Klocwork Server, up to three minor releases back. This means, for example, that you can load Klocwork 2017.2, 2017.3, and 2018 builds into Klocwork 2018.1 without having to import or migrate data. For large organizations, this feature provides flexibility by allowing you to upgrade the Server and Desktop plug-ins to take advantage of improvements in a newer release, while still analyzing some or all of your projects with a previous version of Klocwork. Loading a build from an older version of Klocwork into a newer version of the Klocwork Server and locking it to the older configurationIn this scenario, you already have builds running on an older version of Klocwork and you want to load them into a newer version of the Klocwork Server. You can either import a project from the other build machine, or you can start by creating a new project and loading the build. In this example, we create a new project on Klocwork 2018, and then load a build from a build machine running a 2017.1 version of Klocwork.
How to verify if a project is locked to an earlier version of KlocworkWhen you lock a project to an earlier version of Klocwork, the lock-project-version command creates a configuration file called default_checkers_configuration.xml and moves it to that project directory on the Klocwork Server. The configuration file contains information about the checkers available in that release, including any custom checkers you deployed to that build machine. Search the project directory for default_checkers_configuration.xml to verify whether your project is locked to an earlier version of Klocwork. Unlocking a project so that it no longer uses a project configuration from an earlier version of KlocworkIf you no longer want to lock a project to an earlier version of Klocwork, use the unlock-project-configuration command, for example: kwadmin unlock-project-version demosthenes --url http://my2018server.acme.com:8084 The system deletes the default_checkers_configuration.xml file from the project folder.
Note: Because the project has still been analyzed by an older version of Klocwork, if any checkers were removed or renamed since that release, you won't see them reported in the Portal. Similarly, your project won't report any new checkers introduced since that release. If you want to take advantage of all new checkers, you must analyze your project with the current version of Klocwork.
|