-
Notifications
You must be signed in to change notification settings - Fork 76
Fix/Архивируем результаты EDT-валидации в отдельный архив #185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
b148139
475974f
dad2b4a
346cd93
da97ded
92ea3cd
e635098
901b38f
cff2078
d71672d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ import ru.pulsar.jenkins.library.utils.Logger | |
| class EdtValidate implements Serializable { | ||
|
|
||
| public static final String RESULT_STASH = 'edt-validate' | ||
| public static final String RESULT_FILE = 'build/out/edt-validate.out' | ||
| public static final String RESULT_FILE = 'build/out/edt-validate/edt-validate.out' | ||
|
|
||
| private final JobConfiguration config | ||
|
|
||
|
|
@@ -55,8 +55,17 @@ class EdtValidate implements Serializable { | |
|
|
||
| engine.edtValidate(steps, config, projectList) | ||
|
|
||
| steps.archiveArtifacts("$DesignerToEdtFormatTransformation.WORKSPACE/.metadata/.log") | ||
| steps.archiveArtifacts(RESULT_FILE) | ||
| steps.stash(RESULT_STASH, RESULT_FILE) | ||
|
|
||
| // Архивируем все результаты в отдельном архиве и отправляем в артефакты. | ||
| def resultDir = FileUtils.getFilePath("$RESULT_FILE").getParent() | ||
|
|
||
| String resultLogFrom = FileUtils.getFilePath("$env.WORKSPACE/$DesignerToEdtFormatTransformation.WORKSPACE/.metadata/.log") | ||
| String resultLogTo = FileUtils.getFilePath("$env.WORKSPACE/$resultDir/.log") | ||
| FileUtils.loadFile(resultLogFrom, env, resultLogTo) // копируем лог в папку, которая будет архивироваться | ||
|
Comment on lines
+63
to
+65
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Копирование лога должно выполняться условно. Код копирует лог из директории Оберните копирование лога в условие: if (config.sourceFormat == SourceFormat.DESIGNER) {
String resultLogFrom = FileUtils.getFilePath("$env.WORKSPACE/$DesignerToEdtFormatTransformation.WORKSPACE/.metadata/.log")
String resultLogTo = FileUtils.getFilePath("$env.WORKSPACE/$resultDir/.log")
FileUtils.loadFile(resultLogFrom, env, resultLogTo)
}🤖 Prompt for AI Agents
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Kyrales посмотри на комментарий кролика, пожалуйста.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| String archivePath = "edt-validate.zip" | ||
| Boolean archiveArtifacts = true | ||
| steps.zip("$resultDir", archivePath, '', archiveArtifacts) | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.