You've already forked jenkins-lib
forked from jenkins/jenkins-lib
Переименовал параметр
This commit is contained in:
@@ -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 + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
@@ -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}"
|
||||
|
Reference in New Issue
Block a user