S3Compatible Storage
S3 Compatible Artifact Storage
Example. Adds new storage that allows TeamCity to store build artifacts in S3
project {
// Other Project settings ...
features {
// Other Project Features ...
s3CompatibleStorage {
id = "S3_STORAGE_ID"
storageName = "Storage Name"
bucketName = "Bucket Name"
bucketPrefix = "path/prefix"
forceVirtualHostAddressing = true
verifyIntegrityAfterUpload = false
multipartThreshold = "8MB"
multipartChunksize = "8MB"
// Endpoint is required:
endpoint = "https://s3-compatible-endpoint.com"
// Storage also requires configured Credentials
accessKeyID = "Access key ID"
accessKey = "credentialsJSON:link-to-property-containing-access-key"
}
Content copied to clipboard }
}
See also
Properties
Account access key ID
Bucket name
Bucket path prefix
Whether to use Pre-Signed URLs to upload
Whether to force Virtual Host Addressing
Specify the maximum allowed part size. Minimum value is 5MB. Allowed suffixes: KB, MB, GB, TB. Leave empty to use the default value.
Initiates multipart upload for files larger than the specified value. Minimum value is 5MB. Allowed suffixes: KB, MB, GB, TB. Leave empty to use the default value.
Storage name
Whether to verify integrity of artifacts after upload
Functions
Copies parameters of this object to the specified target
Creates an instance of this project feature via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.
Validates this object and reports found errors to the provided consumer