Open wuhuizuo opened 6 years ago
@eroshenkoam PLS check this issue
@wuhuizuo, ok, I'll check it in the evening
I have a similar issue. I'm using Dockerfile as the agent, I see the tests that runs OK in the console output and I can find the tests results in the allure-results folder as expected, but the allure command output in the console output is just:
[Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] allure [Pipeline] }
And not allure report created. When I run it outside of a Docker container as an agent it works OK.
After upgrading the plugin to the latest one (2.2.5) and mounting the container to the server's allure-tool and JDK paths, it started running, but I'm getting the following error:
Error: Could not find or load main class io.qameta.allure.CommandLine
The full output:
00:13:35.681 [taurus-script-runner] $ docker exec f6bf92a61bf4bf643a60f2afb1be06109f928a06b969202d8f80cfee90757153 env ALLURE_HOME=/var/lib/jenkins/tools/ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation/2.4.1 'ALLURE_OPTS="-Dhttpallure.tests.management.pattern=http://tms.company.com/%s" ' API_TESTING_BRANCH=taurus_test_migration_jenkins2 BUILD_DISPLAY_NAME=#54 BUILD_ID=54 BUILD_NUMBER=54 BUILD_TAG=jenkins-taurus-script-runner-54 BUILD_URL=http://xxx.com:8080/job/taurus-script-runner/54/ CLASSPATH= HUDSON_HOME=/var/lib/jenkins HUDSON_SERVER_COOKIE=3c0c5777b68f7d2a HUDSON_URL=http://xxx.com:8080/ JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 JENKINS_SERVER_COOKIE=3c0c5777b68f7d2a JENKINS_URL=http://xxx.com:8080/ JOB_BASE_NAME=taurus-script-runner JOB_DISPLAY_URL=http://xxx.com:8080/job/taurus-script-runner/display/redirect JOB_NAME=taurus-script-runner JOB_URL=http://xxx.com:8080/job/taurus-script-runner/ RUN_CHANGES_DISPLAY_URL=http://xxx.com:8080/job/taurus-script-runner/54/display/redirect?page=changes RUN_DISPLAY_URL=http://xxx.com:8080/job/taurus-script-runner/54/display/redirect SDK_BRANCH=master library.jenkins_library.version=master /var/lib/jenkins/tools/ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation/2.4.1/bin/allure generate -o /var/lib/jenkins/workspace/taurus-script-runner/allure-report 00:13:35.834 Error: Could not find or load main class io.qameta.allure.CommandLine
@eroshenkoam - any estimation when this will be resolved/handled? Thanks!
Is there any workflow to resolve this issue?
Is there any update on this issue? @eroshenkoam I think I also updated samilar issue https://github.com/jenkinsci/allure-plugin/issues/207
Well, any update in 2020?
Any update has the same issue 2021?
same question, any update in 2021????
Any update?
Any update 2022?
Any update in 2024? The job was successful with docker agent but failed recently.
Issue
Context
Jenkins version: 2.60.2
Job type: Pipeline
Allure plugin version: 2.22
Allure commandline version: 2.21
Problem description
Allure Report should generate in Docker host instead of container inside:
docker { }
to setup.stages
'spost
section.Logs & Traces
Pipeline Jenkinsfile