diff --git a/buildSrc/src/main/kotlin/upload/CuiCloud.kt b/buildSrc/src/main/kotlin/upload/CuiCloud.kt index 5646babcd..1f26807a9 100644 --- a/buildSrc/src/main/kotlin/upload/CuiCloud.kt +++ b/buildSrc/src/main/kotlin/upload/CuiCloud.kt @@ -85,14 +85,21 @@ object CuiCloud { val bytes = file.readBytes() runBlocking { - retryCatching(50) { + var first = true + retryCatching(1000) { + if (!first) { + println() + println() + println("Upload failed. Waiting 15s") + delay(15_000) + } + first = false uploadToCuiCloud( cuiCloudUrl, key, "/mirai/${project.name}/${file.nameWithoutExtension}.mp4", bytes ) - delay(30_000) }.getOrThrow() } }