S3Storage
Amazon S3 Artifact Storage
Example. Adds new storage that allows TeamCity to store build artifacts in S3
project {
// Other Project settings ...
features {
// Other Project Features ...
s3Storage {
id = "S3_STORAGE_ID"
storageName = "Storage Name"
bucketName = "Bucket Name"
bucketPrefix = "path prefix inside the bucket"
forceVirtualHostAddressing = true
enableTransferAcceleration = false
multipartThreshold = "8MB"
multipartChunksize = "8MB"
// Storage requires configured AwsEnvironment
awsEnvironment = default {
awsRegionName = "AWS region"
}
// Storage also requires configured Credentials
connection = awsConnection {
connectionId = "AWS Connection ID"
}
}
Content copied to clipboard }
}
Example. Adds new storage that allows TeamCity to store build artifacts in S3 and upload/download them using CloudFront
project {
// Other Project settings ...
features {
// Other Project Features ...
s3Storage {
id = "S3_STORAGE_ID"
storageName = "Storage Name"
bucketName = "Bucket Name"
bucketPrefix = "path prefix inside the bucket"
forceVirtualHostAddressing = true
multipartThreshold = "6MB"
multipartChunksize = "8MB"
//CloudFront configuration
cloudFrontEnabled = true
cloudFrontUploadDistribution = "ID of CloudFront Distribution used for uploads"
cloudFrontDownloadDistribution = "ID of CloudFront Distribution used for downloads"
cloudFrontPublicKeyId = "ID of CloudFront public key"
cloudFrontPrivateKey = "Link to credentialsJSON property containing CloudFront private key"
// Storage requires configured AwsEnvironment
awsEnvironment = default {
awsRegionName = "AWS region"
}
// Storage also requires configured Credentials
connection = customConnection {
accessKeyID = "AWS Access key ID"
accessKey = "Link to credentialsJSON property containing AWS access key"
}
}
Content copied to clipboard }
}
Example. AWSEnvironment. Selects default environment with specific AWS region
awsEnvironment = default {
awsRegionName = "AWS region"
}
Example. AWSEnvironment. Selects custom environment with specific region
awsEnvironment = custom {
endpoint = "URL of custom endpoint"
awsRegionName = "region"
}
Example. Credentials. Specifies credentials using an ID of configured AWS Connection. @see AwsConnection
connection = awsConnection {
connectionId = "AWS Connection ID"
}
Example. Credentials. Specifies credentials using access key
connection = customConnection {
accessKeyID = "AWS Access key ID"
accessKey = "Link to credentialsJSON property containing AWS access key"
}
Example. Credentials. Specifies credentials using default provider chain
useDefaultCredentialProviderChain = true
See also
Constructors
Types
Functions
Use pre-configured AWS account access keys
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.
Get temporary access keys via AWS STS
Validates this object and reports found errors to the provided consumer