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:
parent
540b90fceb
commit
a584b5ab36
@ -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)
|
||||
}
|
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user