Skip to content

Commit

Permalink
analyze migration status
Browse files Browse the repository at this point in the history
  • Loading branch information
ovcharenko-di committed Dec 22, 2024
1 parent 505de20 commit 608b436
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ru/pulsar/jenkins/library/steps/InitInfoBase.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class InitInfoBase implements Serializable {
settingsIncrement = " --settings $vrunnerSettings"
}

List<Integer> returnStatuses = []

if (options.runMigration) {
Logger.println("Запуск миграции ИБ")

Expand All @@ -54,16 +56,15 @@ class InitInfoBase implements Serializable {
command += settingsIncrement
// Запуск миграции
steps.catchError {
VRunner.exec(command)
Integer returnStatus = VRunner.exec(command, true)
returnStatuses.add(returnStatus)
}
} else {
Logger.println("Шаг миграции ИБ выключен")
}

steps.catchError {

List<Integer> returnStatuses = []

if (options.additionalInitializationSteps.length == 0) {
FileWrapper[] files = steps.findFiles("tools/vrunner.init*.json")
files = files.sort new OrderBy( { it.name })
Expand Down

0 comments on commit 608b436

Please sign in to comment.