Kwchangestatus
kwchangestatus allows you to connect to the Klocwork Server and cite defects from the command line. Note that this utility pulls a Static Code Analysis license.
Usage
kwchangestatus --url http://<klocwork_server_host>:<klocwork_server_port>/<project> --status <status>
You can use an arguments file with kwchangestatus. You can create an arguments file to specify your command line arguments. Each argument must be specified on a separate line. (If the arguments file contains multibyte characters, the file must be UTF-8 encoded.) The usage is:
kwchangestatus @<arguments-file>
Examples
To set the status to 'ignore' for issues 7, 9 and 18, run the following:
kwchangestatus --url http://localhost:8080/zlib --status Ignore 7,9,18
To assign issue 5 to 'jsmith', run the following:
kwchangestatus --url http://localhost:8080/zlib --owner jsmith 5
Options
Name | Short name | Description |
---|---|---|
--help | display command-line help | |
--url http(s)://<host>:<port>/<project> |
URL for a project on the Klocwork Server, of the form http://<server_host>:<server_port>/<project> Use https:// if a secure Klocwork Server connection has been configured. |
|
--status | specify the status you want to update the issue to. For a list of acceptable statuses, click here. | |
--owner | specify the owner you want to assign the issue(s) to. If a user name contains spaces, surround it with double quotes ("). To invite a participant with this option, the participant must already have logged in to Static Code Analysis. | |
--comment | specify a comment that you want to assign to the issue(s). If the comment contains spaces, surround it with double quotes ("). | |
--version | show version |