timeout for JDK/JBRE downloading

This commit is contained in:
Dmitriy.Panov
2018-10-23 11:43:44 +03:00
parent 96df4364a3
commit ea2b2d7677
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -1,3 +1,5 @@
import java.util.concurrent.TimeUnit
def setupJbre = task setupJbre {}
def jdkRepo = 'https://cache-redirector.jetbrains.com/intellij-jdk'
@@ -34,6 +36,7 @@ jrePlatformsToDownload(targetOs).each { platform ->
src "$jdkRepo/${jbsdkArtifactName}.tar.gz"
dest outputFile
tempAndMove true
timeout TimeUnit.MINUTES.toMillis(30).toInteger()
}
}
}
+3
View File
@@ -1,3 +1,5 @@
import java.util.concurrent.TimeUnit
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
task setupJdks(dependsOn: ['setupJdk18', 'setupJdk16'])
cleanSetupJdks.dependsOn('cleanSetupJdk18', 'cleanSetupJdk16', 'cleanDownloadJdk18')
@@ -24,6 +26,7 @@ task downloadJdk18 {
src "$jdkRepo/intellij-jdk/${artifactName}"
dest outputFile
tempAndMove true
timeout TimeUnit.MINUTES.toMillis(30).toInteger()
}
}
}