1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2025-08-25 20:09:25 +02:00

Сохранение результатов аллюра

This commit is contained in:
Nikita Gryzlov
2020-10-19 15:48:58 +03:00
committed by kuzja086
parent 5918ee3bb8
commit 58ae0ac197
3 changed files with 14 additions and 2 deletions

View File

@@ -34,6 +34,8 @@ interface IStepExecutor {
def stash(String name, String includes) def stash(String name, String includes)
def stash(String name, String includes, boolean allowEmpty)
def unstash(String name) def unstash(String name)
def zip(String dir, String zipFile) def zip(String dir, String zipFile)
@@ -49,4 +51,6 @@ interface IStepExecutor {
def httpRequest(String url, String outputFile) def httpRequest(String url, String outputFile)
def httpRequest(String url, String outputFile, String responseHandle, boolean wrapAsMultipart) def httpRequest(String url, String outputFile, String responseHandle, boolean wrapAsMultipart)
def error(String errorMessage)
} }

View File

@@ -80,8 +80,8 @@ class StepExecutor implements IStepExecutor {
} }
@Override @Override
def stash(String name, String includes) { def stash(String name, String includes, boolean allowEmpty = false) {
steps.stash name: name, includes: includes steps.stash name: name, includes: includes, allowEmpty: allowEmpty
} }
@Override @Override
@@ -108,4 +108,9 @@ class StepExecutor implements IStepExecutor {
def httpRequest(String url, String outputFile, String responseHandle = 'NONE', boolean wrapAsMultipart = false) { def httpRequest(String url, String outputFile, String responseHandle = 'NONE', boolean wrapAsMultipart = false) {
steps.httpRequest responseHandle: responseHandle, outputFile: outputFile, url: url, wrapAsMultipart: wrapAsMultipart steps.httpRequest responseHandle: responseHandle, outputFile: outputFile, url: url, wrapAsMultipart: wrapAsMultipart
} }
@Override
def error(String errorMessage) {
steps.error errorMessage
}
} }

View File

@@ -44,5 +44,8 @@ class InitInfobase implements Serializable {
Logger.println("Первичная инициализация командой ${it}") Logger.println("Первичная инициализация командой ${it}")
steps.cmd("oscript_modules/bin/vrunner ${it} --ibconnection \"/F./build/ib\"") steps.cmd("oscript_modules/bin/vrunner ${it} --ibconnection \"/F./build/ib\"")
} }
steps.stash('init-allure', 'build/out/allure/*', true)
steps.stash('init-cucumber', 'build/out/cucumber/*', true)
} }
} }