1
0

Переименовал параметр

This commit is contained in:
Nikita Fedkin
2022-05-20 17:29:47 +03:00
parent b73a6f129d
commit 7f4cf93d7b
2 changed files with 3 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ class SonarQubeOptions implements Serializable {
@JsonPropertyDescription("""Ожидать состояние Quality Gate от SonarQube после загрузки анализа. По умолчанию `false`.
Таймаут ожидания состояния равен таймауту шага.
""")
boolean waitQualityGate
boolean waitForQualityGate
@Override
@NonCPS
@@ -38,6 +38,7 @@ class SonarQubeOptions implements Serializable {
", sonarScannerToolName='" + sonarScannerToolName + '\'' +
", sonarQubeInstallation='" + sonarQubeInstallation + '\'' +
", infoBaseUpdateModuleName='" + infoBaseUpdateModuleName + '\'' +
", waitForQualityGate='" + waitForQualityGate + '\'' +
'}';
}
}

View File

@@ -48,7 +48,7 @@ class SonarScanner implements Serializable {
sonarCommand += " -Dsonar.externalIssuesReportPaths=build/out/edt-generic-issue.json"
}
if (config.sonarQubeOptions.waitQualityGate) {
if (config.sonarQubeOptions.waitForQualityGate) {
def timeoutInSeconds = config.timeoutOptions.sonarqube * 60
sonarCommand += ' -Dsonar.qualitygate.wait=true'
sonarCommand += " -Dsonar.qualitygate.timeout=${timeoutInSeconds}"