The hcpj command copies a current project to a new project or switches a project between active and inactive. To toggle project status only, do not include the new name flag. Toggle can be active or inactive only. If the name of the new project exists, then hcpj uses the default project name. The hcpj command executes with the default Duplicate Access Control option, unless you specify the -dac option to clear it. You can select the Create User Group option by specifying the -cug option.
Projects cannot be copied to the same folder in which they are located. Also, projects located in Active Projects or Inactive Projects can be copied only to the Lifecycle Templates folder. The -cpj option is not required and may have one of these mutual exclusive values: -act, -ina, or -tem. The -act and -ina options should be used only for projects located in the Lifecycle Templates folder to indicate that the project should be copied to the Active Projects folder (-act) or copied to the Inactive Projects folder (-ina). The -tem option should be used only for projects located in the Active Projects or Inactive Projects folder.
This command has the following format:
hcpj {-b name -cpj name} [-npj name] {-act | -ina | -tem} {-usr username ‑pw password} [-dac] [-cug] [-v] [-prompt] [-i inputfile.txt | -di inputfile.txt]
[-eh filename] [-o filename | -oa filename] [-arg] [-wts] [-h]
(Required) Specifies the CA Harvest SCM broker name.
(Required) Specifies the source project to copy.
(Optional) Specifies the new name for the project you are copying.
(Required: -act, -ina, and -tem are mutually exclusive and one is required.) Specifies that the project you are copying be set to active status.
(Required: -act, -ina, and -tem are mutually exclusive and one is required.) Specifies that the project you are copying be set to inactive status.
(Required: -act, -ina, and -tem are mutually exclusive and one is required.) Specifies that the project you are copying is to be a template.
(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.
(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.
(Optional) Specifies not to duplicate access control. By default, when the ‑dac option is not specified, access control is duplicated.
(Optional) Specifies to create a user group with the same name as the project and also grant View and Use access to this user group.
(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.
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|