1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2024-12-13 11:27:08 +02:00

Сохранение лога edt validate в артефакты

This commit is contained in:
Nikita Gryzlov 2020-04-29 17:05:03 +03:00
parent 540b90fceb
commit a584b5ab36
No known key found for this signature in database
GPG Key ID: C1EAE411FEF0BF2F
3 changed files with 12 additions and 3 deletions

View File

@ -41,6 +41,8 @@ interface IStepExecutor {
def zip(String dir, String zipFile, String glob)
def unzip(String dir, String zipFile)
def unzip(String dir, String zipFile, quiet)
def catchError(Closure body)
}

View File

@ -98,4 +98,9 @@ class StepExecutor implements IStepExecutor {
def unzip(String dir, String zipFile, quiet = true) {
steps.unzip dir: dir, zipFile: zipFile, quiet: quiet
}
@Override
def catchError(Closure body) {
steps.catchError body
}
}

View File

@ -44,9 +44,11 @@ class EdtValidate implements Serializable {
def ringOpts = ['RING_OPTIONS=-Dfile.encoding=UTF-8 -Dosgi.nl=ru -Duser.language=ru']
steps.withEnv(ringOpts) {
steps.cmd(ringCommand)
steps.catchError {
steps.cmd(ringCommand)
}
}
steps.archiveArtifacts("$EdtTransform.WORKSPACE/.metadata/.log")
steps.archiveArtifacts(RESULT_FILE)
steps.stash(RESULT_STASH, RESULT_FILE)
}