jfrog_create_virtual_repository
Aggregate multiple repositories into a unified virtual repository in Artifactory, supporting various package types and customizable patterns for artifact inclusion and exclusion.
Instructions
Create a new virtual repository in Artifactory that aggregates multiple repositories
Input Schema
Name | Required | Description | Default |
---|---|---|---|
artifactoryRequestsCanRetrieveRemoteArtifacts | No | ||
debianDefaultArchitectures | No | Default architectures for Debian repositories | |
debianTrivialLayout | No | Whether to use trivial layout for Debian repositories | |
defaultDeploymentRepo | No | Default deployment repository | |
description | No | The virtual repository public description | |
environments | No | Environments to assign the repository to | |
excludesPattern | No | Pattern to define artifacts to exclude | |
externalDependenciesEnabled | No | Enable external dependencies (Bower, npm, Go) | |
externalDependenciesPatterns | No | Patterns for external dependencies | |
externalDependenciesRemoteRepo | No | Remote repository for external dependencies | |
forceMavenAuthentication | No | Force authentication for Maven repositories | |
includesPattern | No | Pattern to define artifacts to include | **/* |
key | Yes | the key of the repository | |
keyPair | No | Key pair used for signing | |
notes | No | Some internal notes | |
optionalIndexCompressionFormats | No | ||
packageType | Yes | Package type of the repository | |
pomRepositoryReferencesCleanupPolicy | No | discard_active_reference | |
primaryKeyPairRef | No | Primary GPG key pair reference | |
projectKey | No | Project key to assign the repository to | |
rclass | Yes | The repository type | |
repoLayoutRef | No | Repository layout reference | |
repositories | Yes | List of repository keys to include in the virtual repository | |
secondaryKeyPairRef | No | Secondary GPG key pair reference |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"artifactoryRequestsCanRetrieveRemoteArtifacts": {
"default": false,
"type": "boolean"
},
"debianDefaultArchitectures": {
"description": "Default architectures for Debian repositories",
"type": "string"
},
"debianTrivialLayout": {
"default": false,
"description": "Whether to use trivial layout for Debian repositories",
"type": "boolean"
},
"defaultDeploymentRepo": {
"description": "Default deployment repository",
"type": "string"
},
"description": {
"description": "The virtual repository public description",
"type": "string"
},
"environments": {
"description": "Environments to assign the repository to",
"items": {
"type": "string"
},
"type": "array"
},
"excludesPattern": {
"default": "",
"description": "Pattern to define artifacts to exclude",
"type": "string"
},
"externalDependenciesEnabled": {
"default": false,
"description": "Enable external dependencies (Bower, npm, Go)",
"type": "boolean"
},
"externalDependenciesPatterns": {
"description": "Patterns for external dependencies",
"items": {
"type": "string"
},
"type": "array"
},
"externalDependenciesRemoteRepo": {
"description": "Remote repository for external dependencies",
"type": "string"
},
"forceMavenAuthentication": {
"default": false,
"description": "Force authentication for Maven repositories",
"type": "boolean"
},
"includesPattern": {
"default": "**/*",
"description": "Pattern to define artifacts to include",
"type": "string"
},
"key": {
"description": "the key of the repository",
"type": "string"
},
"keyPair": {
"description": "Key pair used for signing",
"type": "string"
},
"notes": {
"description": "Some internal notes",
"type": "string"
},
"optionalIndexCompressionFormats": {
"items": {
"enum": [
"bz2",
"lzma",
"xz"
],
"type": "string"
},
"type": "array"
},
"packageType": {
"description": "Package type of the repository",
"enum": [
"bower",
"cargo",
"chef",
"cocoapods",
"composer",
"conan",
"cran",
"debian",
"docker",
"Npm",
"gems",
"gitlfs",
"go",
"gradle",
"helm",
"ivy",
"maven",
"nuget",
"opkg",
"p2",
"pub",
"puppet",
"pypi",
"rpm",
"sbt",
"swift",
"terraform",
"vagrant",
"yum",
"generic"
],
"type": "string"
},
"pomRepositoryReferencesCleanupPolicy": {
"default": "discard_active_reference",
"enum": [
"discard_active_reference",
"discard_any_reference",
"nothing"
],
"type": "string"
},
"primaryKeyPairRef": {
"description": "Primary GPG key pair reference",
"type": "string"
},
"projectKey": {
"description": "Project key to assign the repository to",
"type": "string"
},
"rclass": {
"const": "virtual",
"description": "The repository type",
"type": "string"
},
"repoLayoutRef": {
"description": "Repository layout reference",
"type": "string"
},
"repositories": {
"description": "List of repository keys to include in the virtual repository",
"items": {
"type": "string"
},
"type": "array"
},
"secondaryKeyPairRef": {
"description": "Secondary GPG key pair reference",
"type": "string"
}
},
"required": [
"key",
"rclass",
"packageType",
"repositories"
],
"type": "object"
}