Previous Topic: hmvitm Command-Move ItemNext Topic: hmvproj Command-Move or Copy Projects


hmvpkg Command-Move Package

The hmvpkg command executes the first move package process in the second project given. The process properties determine the default behavior for the process access and executing of linked processes. Other aspects of the process can be specified through command parameters read from the command line.

This command has the following format:

hmvpkg {-b name -en name -st name} {-usr username -pw password} [-ph] [-pn name] [-ten name] [-tst name] [-v] [-prompt] [-i inputfile.txt | -di inputfile.txt] [‑eh filename] [-o filename | -oa filename] [-arg] [-wts] [-h] [-k] package_names... 
-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 CA Harvest SCM state.

-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.

-ph

(Optional) Specifies to transfer all the history records that have been created in former projects. If the history is no longer required, excluding it can reduce processing time.

-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.

-ten name

(Optional, unless -tst is specified.) Specifies the CA Harvest SCM destination project. If this argument is specified, the -tst option must also be specified. If this argument is not specified, the CA Harvest SCM administrator must define the target project.

-tst name

(Optional, unless -ten is specified.) Specifies the CA Harvest SCM destination state. If this argument is specified, the -ten option must also be specified. If this argument is not specified, the CA Harvest SCM administrator must define the target state.

-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.

-k

(Optional) Specifies if a duplicate of the source package must be created in the source project for the move.

package_names...

Specifies the names of one or more packages to move.

Example: hmvpkg command

hmvpkg -usr user -pw password -b broker -en project -st state -ph "Pkg1" "Pkg2" "Pkg3"