aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Kermis <alain.kermis@sonarsource.com>2025-01-03 15:58:36 +0100
committersonartech <sonartech@sonarsource.com>2025-01-03 20:03:01 +0000
commit1566bafe02ec3dbd3eedd699e3ab3e00f5bc82e8 (patch)
tree5535c8246ebd8ca00efeb8d67746648f15df337a
parente98dafa4bb1cc6ba47a87c2ca9ac2d4c703ce916 (diff)
downloadsonarqube-branch-25.01.tar.gz
sonarqube-branch-25.01.zip
SONAR-24107 Fix quality gate issuebranch-25.1branch-25.01
-rw-r--r--server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/step/MigrationStepsExecutorImpl.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/step/MigrationStepsExecutorImpl.java b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/step/MigrationStepsExecutorImpl.java
index e595184058c..07bc9522d2b 100644
--- a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/step/MigrationStepsExecutorImpl.java
+++ b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/step/MigrationStepsExecutorImpl.java
@@ -68,14 +68,13 @@ public class MigrationStepsExecutorImpl implements MigrationStepsExecutor {
}
allStepsExecuted = true;
} finally {
- long dbMigrationDuration = 0L;
if (allStepsExecuted) {
- dbMigrationDuration = globalProfiler.stopInfo(GLOBAL_END_MESSAGE,
+ globalProfiler.stopInfo(GLOBAL_END_MESSAGE,
databaseMigrationState.getCompletedMigrations(),
databaseMigrationState.getTotalMigrations(),
"success");
} else {
- dbMigrationDuration = globalProfiler.stopError(GLOBAL_END_MESSAGE,
+ globalProfiler.stopError(GLOBAL_END_MESSAGE,
databaseMigrationState.getCompletedMigrations(),
databaseMigrationState.getTotalMigrations(),
"failure");