Previous Topic: haccess Command-Access ReportNext Topic: har Command-Archive


hap Command-Approve Package

The hap command executes the approval process specified on the command line, or the first approve process in the current context if no process name is specified. The process definition determines the default behavior, process access, and execution of linked processes. Other aspects of the process can be specified through command parameters.

This command has the following format:

hap package_name1 package_name2... {-b name -en name -st name} [-v] [-pn name] [‑c text] {-usr username -pw password} [-rej] [-prompt] [-i inputfile.txt | ‑di inputfile.txt] [-eh filename] [-o filename | -oa filename] [-arg] [-wts] [‑h]package_name ...

Specifies the names of one or more packages to approve.

-b name

(Required) Specifies the CA Harvest SCM broker name.

-en name

(Required) Specifies the CA Harvest SCM project context. If the project name contains spaces, enclose the name in quotation marks.

-st name

(Required) Specifies the name of the state in which the user is operating.

-pn name

(Optional) Specifies a specific process name to invoke if more than one process of the same type exists in the state. If no process name is included in the command, the first process of that type in that state is invoked.

-c text

(Optional) Defines a comment about the approval.

-usr username

(Required, unless -prompt is specified) Specifies the user name for login to the broker. If -usr is defined without -pw, the user is prompted for the password at runtime.

-pw password

(Required, unless -prompt is specified) Specifies the password for login to the broker. To hide the password from being exposed in plain text on the command line, use the ‑prompt option.

-rej

(Optional) Specifies that the package is to be rejected. If this option is not specified, the package is approved.

-eh filename

(Optional) Specifies the encrypted CA Harvest SCM username-password file name. The file name used with this option contains encrypted username-password credentials and must be generated with the svrenc utility.

Note: -eh overrides -usr and -pw options. -prompt overrides -eh, -usr and -pw options.