diff options
author | Eric Hartmann <hartmann.eric@gmail.com> | 2018-10-08 11:24:41 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2018-10-10 09:23:06 +0200 |
commit | dbfde91e6ece5439eecc7f1b9586ee601453a248 (patch) | |
tree | 728d06f19a345a4f19a07fb5e6d4fcfc2fb3ff2e /sonar-scanner-engine/src/main/java/org | |
parent | 12d32893c71ea44b1620f7cddd8baab23459b561 (diff) | |
download | sonarqube-dbfde91e6ece5439eecc7f1b9586ee601453a248.tar.gz sonarqube-dbfde91e6ece5439eecc7f1b9586ee601453a248.zip |
SONAR-11113 Increase timeout for downloading plugins
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/PluginFiles.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/PluginFiles.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/PluginFiles.java index 697908b40db..92dcb395f94 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/PluginFiles.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/PluginFiles.java @@ -92,7 +92,8 @@ public class PluginFiles { private Optional<File> download(InstalledPlugin plugin) { GetRequest request = new GetRequest("api/plugins/download") .setParam("plugin", plugin.key) - .setParam("acceptCompressions", PACK200); + .setParam("acceptCompressions", PACK200) + .setTimeOutInMs(5 * 60_000); File downloadedFile = newTempFile(); LOGGER.debug("Download plugin '{}' to '{}'", plugin.key, downloadedFile); |