1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2025-02-01 13:28:00 +02:00

Скачивание временной сборки VAS с исправлением работы под linux

This commit is contained in:
Nikita Gryzlov 2020-10-19 14:24:46 +03:00
parent 3350eb8e70
commit 9ca255f4fd
No known key found for this signature in database
GPG Key ID: C1EAE411FEF0BF2F
3 changed files with 15 additions and 0 deletions

View File

@ -45,4 +45,8 @@ interface IStepExecutor {
def unzip(String dir, String zipFile, quiet)
def catchError(Closure body)
def httpRequest(String url, String outputFile)
def httpRequest(String url, String outputFile, String responseHandle, boolean wrapAsMultipart)
}

View File

@ -103,4 +103,9 @@ class StepExecutor implements IStepExecutor {
def catchError(Closure body) {
steps.catchError body
}
@Override
def httpRequest(String url, String outputFile, String responseHandle = 'NONE', boolean wrapAsMultipart = false) {
steps.httpRequest responseHandle: responseHandle, outputFile: outputFile, url: url, wrapAsMultipart: wrapAsMultipart
}
}

View File

@ -34,6 +34,12 @@ class InitInfobase implements Serializable {
Logger.println("Шаг миграции ИБ выключен")
}
// TODO: удалить после выхода VAS 1.0.35
steps.httpRequest(
'https://cloud.svc.pulsar.ru/index.php/s/WKwmqpFXSjfYjAH',
'oscript_modules/vanessa-automation-single/vanessa-automation-single.epf'
)
config.initInfobaseOptions.additionalMigrationSteps.each {
Logger.println("Первичная инициализация командой ${it}")
steps.cmd("oscript_modules/bin/vrunner ${it} --ibconnection \"/F./build/ib\"")