diff --git a/schemas/index.json b/schemas/index.json index 9fc6d54f7..4614e8331 100644 --- a/schemas/index.json +++ b/schemas/index.json @@ -19,6 +19,9 @@ }, { "$ref": "#/definitions/GitLabConfig" + }, + { + "$ref": "#/definitions/BitbucketConfig" } ] }, @@ -114,6 +117,48 @@ "GitLabURL" ], "additionalProperties": false + }, + "BitbucketConfig": { + "type": "object", + "properties": { + "Type": { + "const": "bitbucket" + }, + "BitBucketServerURL": { + "type": "string", + "description": "BitBucket Server url" + }, + "BitBucketServerProject": { + "type": "string", + "description": "project to mirror" + }, + "DisableTLS": { + "type": "boolean", + "description": "Disable TLS verification", + "default": false + }, + "ProjectType": { + "type": "string", + "description": "Only clone repos whose type matches the given string. Type can be either NORMAl or PERSONAL. Clones projects of both types if not set.", + "enum": ["NORMAL", "PERSONAL"] + }, + "Name": { + "$ref": "#/definitions/RepoNameRegexIncludeFilter" + }, + "Exclude": { + "$ref": "#/definitions/RepoNameRegexExcludeFilter" + }, + "CredentialPath": { + "type": "string", + "description": "Path to a file containing a Bitbucket access token.", + "default": ".bitbucket-credentials" + } + }, + "required": [ + "Type", + "BitBucketServerURL" + ], + "additionalProperties": false } }, "properties": {