qacli upload
Upload the Helix QAC analysis results to an external server.
Usage
upload {-q|-D|-V|-s|-g <output-file>} [-P <directory>] [-K <config name>] [--username <username>] [-p <password>] [-w <password-file>] [-t <token>] [-r <directory>] [-v <file>] [-j <n>] [--upload-project <project>] [-u <directory>] [--upload-source <NONE|ALL|NOT_IN_VCS>] [-a <ROOT|RELATIVE|ABSOLUTE>] [-S <snapshot>] [--snapshot-parent <parent>] [-U <[protocol://]host:port>] [-F <file>] [--] [-h] <source-file>
Extended Description
The Helix QAC analysis results may be uploaded to an external application where further analysis may be performed such as defect trend analysis, code structure/complexity analysis etc. Several different targets are currently supported:
- Helix QAC Dashboard: The legacy Helix QAC Dashboard is a centralized store of analysis results, accessed through a web browser. Results are uploaded to the dashboard as ‘snapshots’. Customized views and reports mean that project code quality and compliance metrics can be monitored over time.
- structure101: Visualization of the structure of the source code.
Options
Name, shorthand | Default | Description |
---|---|---|
‑‑config, ‑K
|
For projects with multiple configurations, specify which configuration to use. If none specified, then the default will be used. | |
‑‑dashboard, ‑D
|
Specify to upload results to Dashboard. Alias for '‑‑qav‑upload ' |
|
‑‑files, ‑F
|
Specify a path to a file containing a list of files from the project for which to upload results for. If not supplied, the results will be uploaded for all files in the project. |
|
‑‑generate‑qav‑config, ‑g
|
Generate a Dashboard Client configuration file for a specified Helix QAC project. This file can be used for advanced Dashboard configuration and is generated automatically in most circumstances. This option is primarily for use by Helix QAC consultants and advanced users only. | |
‑‑help, ‑h
|
Displays usage information and exits. | |
‑‑ignore‑rest, ‑‑
|
Ignores the rest of the labeled arguments following this flag. | |
‑‑jobs, ‑j
|
0 | Specify the number of jobs to run in parallel for the Dashboard upload. If not supplied or if 0 is supplied, then qaimport will determine the value. |
‑‑password‑file, ‑w
|
A path to a file that contains a Dashboard password. It should be appropriately protected. | |
‑‑password, ‑p
|
Dashboard password. Consider using tokens for Dashboard authentication or a password file. | |
‑‑path‑format, ‑a
|
Specify how paths are translated before upload to Dashboard. There are 3 possible values:
|
|
‑‑qaf‑project, ‑P
|
. | Specify a path to a valid Helix QAC project. |
‑‑qav‑upload, ‑q
|
Specify to upload results to Dashboard | |
‑‑repository, ‑r
|
Specify a source repository that Dashboard can access for version control. | |
‑s101‑upload, ‑s
|
Specify to upload results to a structure101 project. An 'upload-location' must be provided for this option. | |
‑‑snapshot‑name, ‑S
|
Specify the snapshot (build) name to be used for this upload. If no name is specified then a default will be used:
|
|
‑‑snapshot‑parent
|
Specify the name of the Dashboard parent snapshot, to which the new snapshot will be directly connected. If this entry is not provided or this parent snapshot is not found, then the last uploaded snapshot is chosen as parent. |
|
‑‑token, ‑t
|
For Dashboard, use the supplied authentication token rather than user credentials. See ‑‑dashboard, ‑D for creation details. | |
‑‑upload‑location, ‑u
|
A path to the directory where the Structure101 project will be created. | |
‑‑upload‑project
|
Specify the project name to be used by Dashboard for this upload. | |
‑‑upload‑source
|
Specify the source upload strategy. This can be none, all or code not in the associated project repository. | |
‑‑url, ‑U
|
URL of the results server. By default the http protocol is assumed. Examples include; |
|
‑‑username
|
Dashboard username. Consider using tokens for Dashboard authentication. | |
‑‑validate, ‑V
|
Specify to upload results to Validate. | |
‑‑validate‑project, ‑b
|
Upload diagnostics to the specified Validate project/stream (which must already exist). | |
‑‑vcf, ‑v
|
Specify a version control file to be uploaded to Dashboard. |
Notes
‑‑upload‑location
must exist.Examples
Upload Diagnostics to Helix QAC Dashboard
To upload Helix QAC diagnostics to the project ‘matrix’ (that already exists on the Dashboard server), with the optional snapshot name ‘snap-1’ issue a command such as:
qacli upload --dashboard --username PRabbit --password-file pwd-file -P . --url http://localhost:8080 -–upload-project matrix --snapshot-name snap-1 –upload-source ALL
Upload to structure101
The following command can be used to upload the analysis results of a Helix QAC project to a structure101 project:
Selected Upload of Files (Dashboard & structure101 Only)
It is possible to upload just a single file using the optional unnamed parameter <source-file>
or a list of files using the --files
option. These can also be used together to provide a combined list of files to upload.
To upload a single file to structure101:
To upload a list of files to Dashboard:
qacli upload --dashboard --username PRabbit --password-file pwd-file -P . --url http://localhost:8080 -–upload-project matrix --snapshot-name snap-1 –upload-source ALL --files file-list
A file-list is a text file made up of one path per line.
- Upload to Helix QAC Dashboard
- Upload to Structure101
- Upload of Selected Files
- Generate Dashboard Configuration