Complete Installation and Upgrade Information for Software AG Products : Command Central : Command Central Developer Reference : Using the Command Line Interface : Repository Commands : sagcc update repository assets git
sagcc update repository assets git
Update a GIT repository that contains user-created source assets.
*Command Central syntax:
sagcc update repository assets git name=repoName location=URL
[credentials=credAlias][registryRoot=URL] [registryNamespacesRoot=URL]
[description=description] [branch=branch_name] [options]
*Not supported by Platform Manager.
Arguments and Options
Argument or Option
Required. A unique name for the flat file repository that you are adding.
Optional. A valid URL that points to the location of the remote Git repository. For example,
Optional. The alias of the COMMON-CREDENTIALS configuration instance that has the details for accessing the GIT repository. If the instance already exists, you can retrieve the alias using the sagcc list configuration instances. If the configuration instance does not exist, you must create it with the sagcc create configuration data command. See the Usage Notes of the sagcc add repository assets git command for details about the GIT credentials input properties file that you must provide with the sagcc create configuration data command.
Optional. A valid URL that points to the location of the registry that stores the metadata for the assets in the repository.
The registry is located inside the local directory that stores the flat file repository. For example, if the flat file repository is located in the C:\fileRepo directory and the registry directory is "MyRegistry", you must set this parameter as follows: registryRoot=/MyRegistry
Optional. A valid URL that points to the location of the directory that stores the registry namespaces.
The namespace directory is located inside the registry directory. For example, if the registry directory is C:\fileRepo, you must set this parameter as follows: registryNamespacesRoot=/MyRegistryNs
Optional. A description of the asset repository.
Optional. The name of a branch in the git repository that you want to update. When you omit this argument, the command uses the branch that is set as default in the remote git repository.
Use a simple branch name. Do not use prefixes, such as origin/* or refs/*
Optional. The command allows all options supported by the Command Line Interface. For a description of the options, see Common Options.
Usage Notes
*If you do not specify the location of the existing repository, Command Central uses the location of the repository from the cache.
*When creating or updating an asset repository, you can check the progress of the operation and troubleshoot issues using Jobmanager Jobs Commands or in the Command Central web user interface, go to Stacks > Jobs.
Example When Executing on Command Central
To update a remote GIT repository with name "g1":
sagcc update repository assets git name=g1
location=ssh:// credentials=gitRepoAlias
description="GIT repository hosting the asset build"
Command Central connects to the GIT repository over SSH, using the credentials defined for the credentials configuration instance with alias "gitRepoAlias":
Copyright © 2007-2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback