jenkinsci / allure-plugin

Allure Jenkins Plugin
https://plugins.jenkins.io/allure-jenkins-plugin/
Other
85 stars 66 forks source link

Allure is not generating on slave node but report generated on master #259

Open AlperennK opened 4 years ago

AlperennK commented 4 years ago

Issue

Allure is not generating on slave node but report generated on master

Context

Problem description

Hello, I have a pipeline basically it runs a pytest script and Allure jenkins plugin catches xml file and generates report. If I run this pipeline on master I can get report however if I run it on slave I can't get any results.

Logs & Traces

Trace on slave machine:

======================== 7 failed, 63 passed in 8.46s ========================= [Pipeline] stage (Publish report) Using the ‘stage’ step without a block argument is deprecated Entering stage Publish report Proceeding [Pipeline] allure [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ru.yandex.qatools.allure.jenkins.exception.AllurePluginException: Can not generate Allure Report, exit code: 1 at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.generateReport(AllureReportPublisher.java:296) at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.perform(AllureReportPublisher.java:218) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:51) at hudson.security.ACL.impersonate(ACL.java:290) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:48) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Finished: FAILURE

Pipeline

`node('Autotests') { stage ('Run tests') dir ('C:/Program Files (x86)/Jenkins/workspace/Autotests/xxx') { try { bat '''python run.py''' } catch (Exception ex) { currentBuild.result = 'UNSTABLE' } finally { stage ('Publish report') step([$class: 'AllureReportPublisher', includeProperties: false, jdk: 'jdk-1.8', results: [[path: '_output/my_allure_results']]]) } }

}

`

Please include any relevant log that could serve to better understand the source of your issue