in azure-storage-server/src/main/kotlin/jetbrains/buildServer/serverSide/artifacts/azure/AzureArtifactContentProvider.kt [13:27]
override fun getContent(artifactInfo: StoredBuildArtifactInfo): InputStream {
val artifactData = artifactInfo.artifactData ?: throw IOException("Can not process artifact download request for a folder")
val parameters = AzureUtils.getParameters(artifactInfo.storageSettings)
val path = AzureUtils.getArtifactPath(artifactInfo.commonProperties, artifactData.path)
try {
val blob = AzureUtils.getBlobReference(parameters, path)
return blob.openInputStream()
} catch (e: Throwable) {
val message = "Failed to get artifact $path from Azure Blob Storage"
LOG.warnAndDebugDetails(message, e)
throw IOException("$message: $e.message", e)
}
}