Home > docs > processes v1 > Imports
Resources such as flows, forms and other workflow files can be shared between
Concord projects by using
How it works:
concord.ymlfile and looks for the
gitrepositories are cloned and their
pathdirectories are copied into the
destdirectory of the process working directory;
mvnartifacts are downloaded and extracted into the
formsdirectories will be loaded as usual.
imports: - git: url: "https://github.com/walmartlabs/concord.git" path: "examples/hello_world" configuration: arguments: name: "you"
Running the above example produces a
Hello, you! log message.
The full syntax for imports is:
imports: - type: options - type: options
imports is a top-level objects, similar to
In addition, only the main YAML file’s, the root
Types of imports and their parameters:
git- imports remote git repositories:
url- URL of the repository, either
name- the organization and repository names, e.g.
walmartlabs/concord. Automatically expanded into the full URL based on the server’s configuration. Mutually exclusive with
version- (optional) branch, tag or a commit ID to use. Default
path- (optional) path in the repository to use as the source directory;
dest- (optional) path in the process’ working directory to use as the destination directory. Defaults to the process workspace
exclude- (optional) list of regular expression patterns to exclude some files when importing;
secret- reference to
USERNAME_PASSWORDsecret. Must be a non-password protected secret;
mvn- imports a Maven artifact:
url- the Artifact’s URL, in the format of
mvn://groupId:artifactId:version. Only JAR and ZIP archives are supported;
dest- (optional) path in the process’ working directory to use as the destination directory. Default
secret reference has the following syntax:
org- (optional) name of the secret’s org. Uses the process’s organization if not specified;
name- name of the secret;
password- (optional) password for password-protected secrets. Accepts literal values only, expressions are not supported.
An example of a
git import using custom authentication:
imports: - git: url: "https://github.com/me/my_private_repo.git" secret: name: "my_secret_key"