mirror of
https://github.com/firstBitMarksistskaya/jenkins-lib.git
synced 2024-12-13 11:27:08 +02:00
Добавлено временное логирование работы шага аллюр
This commit is contained in:
parent
5dacc3242a
commit
9e1f393f3e
@ -1,6 +1,7 @@
|
|||||||
package ru.pulsar.jenkins.library
|
package ru.pulsar.jenkins.library
|
||||||
|
|
||||||
import org.jenkinsci.plugins.workflow.support.actions.EnvironmentAction
|
import org.jenkinsci.plugins.workflow.support.actions.EnvironmentAction
|
||||||
|
import ru.pulsar.jenkins.library.utils.Logger
|
||||||
import ru.yandex.qatools.allure.jenkins.config.ResultsConfig
|
import ru.yandex.qatools.allure.jenkins.config.ResultsConfig
|
||||||
|
|
||||||
class StepExecutor implements IStepExecutor {
|
class StepExecutor implements IStepExecutor {
|
||||||
@ -117,6 +118,7 @@ class StepExecutor implements IStepExecutor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
def allure(List<String> results) {
|
def allure(List<String> results) {
|
||||||
|
Logger.println(ResultsConfig.convertPaths(results))
|
||||||
steps.allure([
|
steps.allure([
|
||||||
commandline: 'allure',
|
commandline: 'allure',
|
||||||
includeProperties: false,
|
includeProperties: false,
|
||||||
|
@ -32,6 +32,9 @@ class PublishAllure implements Serializable {
|
|||||||
|
|
||||||
List<String> results = new ArrayList<>();
|
List<String> results = new ArrayList<>();
|
||||||
|
|
||||||
|
Logger.println(allurePath.toString())
|
||||||
|
Logger.println(allurePath.listDirectories().toString())
|
||||||
|
|
||||||
allurePath.listDirectories().each { FilePath filePath ->
|
allurePath.listDirectories().each { FilePath filePath ->
|
||||||
results.add(filePath.getRemote())
|
results.add(filePath.getRemote())
|
||||||
}
|
}
|
||||||
@ -39,6 +42,8 @@ class PublishAllure implements Serializable {
|
|||||||
results.add(allurePath.getRemote())
|
results.add(allurePath.getRemote())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Logger.println(results.toString())
|
||||||
|
|
||||||
steps.allure(results)
|
steps.allure(results)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user