diff options
author | Jacek <jacek.poreda@sonarsource.com> | 2022-07-27 14:03:15 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-07-27 20:03:20 +0000 |
commit | 496ed35e61d007dca528ec48a0e79297aae31d8a (patch) | |
tree | 9ab3a444917deb8fd9dd788c847a4cf5c91b3a06 /sonar-scanner-engine/src/main/java/org/sonar/scanner/scan | |
parent | 87eb70585fa0be0fe5b0e8c65877a82a918a27f4 (diff) | |
download | sonarqube-496ed35e61d007dca528ec48a0e79297aae31d8a.tar.gz sonarqube-496ed35e61d007dca528ec48a0e79297aae31d8a.zip |
SONAR-17088 Increase default timeout of scanner report publishing to 60 sec
- Add scan property `sonar.report.publish.timeout`
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/scanner/scan')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ScanProperties.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ScanProperties.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ScanProperties.java index 44a9c04c061..250d9d22482 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ScanProperties.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ScanProperties.java @@ -42,6 +42,7 @@ public class ScanProperties { public static final String SCM_REVISION = "sonar.scm.revision"; public static final String QUALITY_GATE_WAIT = "sonar.qualitygate.wait"; public static final String QUALITY_GATE_TIMEOUT_IN_SEC = "sonar.qualitygate.timeout"; + public static final String REPORT_PUBLISH_TIMEOUT_IN_SEC = "sonar.ws.report.timeout"; private final Configuration configuration; private final DefaultInputProject project; @@ -88,6 +89,10 @@ public class ScanProperties { return configuration.getInt(QUALITY_GATE_TIMEOUT_IN_SEC).orElse(300); } + public int reportPublishTimeout() { + return configuration.getInt(REPORT_PUBLISH_TIMEOUT_IN_SEC).orElse(60); + } + /** * This should be called in the beginning of the analysis to fail fast */ |