A flexible lightweight multi-language test report tool with the possibility to add steps, attachments, parameters and so on.
maybe your POSTcode is wrong. Check this one as stage
stage('Generating Reports'){ steps { allure([ includeProperties: false, jdk: '', properties: [], reportBuildPolicy: 'ALWAYS', results: [[path: "test/reports/allure-results"]] ]) } }
try using that please
[Pipeline] dir
Running in /var/lib/jenkins/workspace/…/test
[Pipeline] {
[Pipeline] unstash
[Pipeline] }
[Pipeline] // dir
[Pipeline] sh
+ chmod 777 test/reports/allure-results
[Pipeline] allure
docker exec --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** bc9430053d95d841aee77da957ad4d5b0b7cf81a82530863383759df2a8df07d /var/lib/jenkins/tools/ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation/allure/allure-2.14.0/bin/allure generate /var/lib/jenkins/workspace/…/test/reports/allure-results -c -o /var/lib/jenkins/workspace/…./allure-report
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "/var/lib/jenkins/tools/ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation/allure/allure-2.14.0/bin/allure": stat /var/lib/jenkins/tools/ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation/allure/allure-2.14.0/bin/allure: no such file or directory: unknown
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
$ docker stop --time=1 bc9430053d95d841aee77da957ad4d5b0b7cf81a82530863383759df2a8df07d
$ docker rm -f bc9430053d95d841aee77da957ad4d5b0b7cf81a82530863383759df2a8df07d
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ru.yandex.qatools.allure.jenkins.exception.AllurePluginException: Can not generate Allure Report, exit code: 126
at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.generateReport(AllureReportPublisher.java:314)
at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.perform(AllureReportPublisher.java:231)
at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Jenkins not tried to get new version which i put to configuration
maybe your POSTcode is wrong. Check this one as stage
stage('Generating Reports'){ steps { allure([ includeProperties: false, jdk: '', properties: [], reportBuildPolicy: 'ALWAYS', results: [[path: "test/reports/allure-results"]] ]) } }
just add that stage and show me
java.nio.file.AccessDeniedException: /var/lib/jenkins/workspace/.../reports/allure-results/testrun.json
Sorry mate, unfortunately for me i need to go.
Many-many-many thanks for you helping. I will check permissions too when i will back to home
Hi Guys, I am configuring allure reports in my existing automation framework that consist of Java, maven, cucumber and junit.
I've configured it rightly by following allure documentation (https://docs.qameta.io/allure/#_cucumber_jvm). But when i am running mvn test , it gives following exception:
The forked VM terminated without saying properly goodbye. VM crash or System.exit called...
It is not able to load "-Dcucumber.options=--plugin ru.yandex.qatools.allure.cucumberjvm.AllureReporter"
Can someone please help me?
PS: It generates the report when i am running tests from feature files, but i need to run it through maven because i have to integrate these results in jenkins pipeline
:point_up: Edit: Hi Guys, I am configuring allure reports in my existing automation framework that consist of Java, maven, cucumber and junit.
I've configured it rightly by following allure documentation (https://docs.qameta.io/allure/#_cucumber_jvm). But when i am running mvn test , it gives following exception:
The forked VM terminated without saying properly goodbye. VM crash or System.exit called...
It is not able to load "-Dcucumber.options="--plugin io.qameta.allure.cucumber4jvm.AllureCucumber4Jvm"
Can someone please help me?
PS: It generates the report when i am running tests from feature files, but i need to run it through maven because i have to integrate these results in jenkins pipeline
stage('Report') {
steps {
script {
allure([
includeProperties: false,
jdk: '',
properties: [],
reportBuildPolicy: 'ALWAYS',
results: [[path: 'allure-results']]
])
}
}
}
--port <port_number>
and --host 0.0.0.0
in the allure serve command from inside the container. Now I can access the report with all dependancies in the container. Thanks for your help! :)