Coder Social home page Coder Social logo

Comments (7)

F1ashhimself avatar F1ashhimself commented on June 22, 2024 1

@eroshenkoam All is fine with latest plugin and cli. Thank you!

from allure-plugin.

eroshenkoam avatar eroshenkoam commented on June 22, 2024

@F1ashhimself, can you build plugin from #84 and check it?

from allure-plugin.

F1ashhimself avatar F1ashhimself commented on June 22, 2024

Still the same...

allure-jenkins-plugin.zip

from allure-plugin.

m3nthal avatar m3nthal commented on June 22, 2024

Context

  • Allure Jenkins Plugin 2.15
  • Allure Commandline 1.52
  • Jenkins 2.54

It seems that ALLURE_HOME is not set correctly on plugin level.
I've added some lines in allure.bat file for debugging and replace the logic to always reset ALLURE_HOME and it worked!

@REM find and validate allure home directory
echo "Before: %ALLURE_HOME%"
set "ALLURE_HOME=%~dp0.."
echo "After: %ALLURE_HOME%"
if not exist "%ALLURE_HOME%\bin\allure.bat" (
    echo Invalid ALLURE_HOME: %ALLURE_HOME% is not a valid allure commandline directory >&2
    goto error
)

Jenkins log:

[TEST_JOB] $ C:\jenkins\qatools\tools\ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation\default\bin\allure.bat generate "C:\jenkins\qatools\workspace\TEST_JOB\allure-results" -o "C:\jenkins\qatools\workspace\TEST_JOB\allure-report"
"Before: /C:\jenkins\qatools\tools\ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation\default"
"After: C:\jenkins\qatools\tools\ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation\default\bin\.."
16:44:26 Report successfully generated to the directory <C:\jenkins\qatools\workspace\TEST_JOB\allure-report>. Use `allure report open` command to show the report.

Notice / is added in front of the path before transformation. Could it be the issue?

from allure-plugin.

1cto avatar 1cto commented on June 22, 2024

I've got the same trouble "/" in front of ALLURE_HOME. Any attepmpts to reassign the value of ALLURE_HOME on Jenkins level havn't been successful.

from allure-plugin.

F1ashhimself avatar F1ashhimself commented on June 22, 2024

Still reproducible on matrix job

Allure Jenkins Plugin 2.20
CLI 1.5.4

Invalid ALLURE_HOME: C:\jenkins\workspace\regression\MARK\tests1\OS\win7\.. is not a valid allure commandline directory ERROR: Build step failed with exception 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:265) at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.perform(AllureReportPublisher.java:186) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:735) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:676) at hudson.model.Build$BuildExecution.post2(Build.java:186) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:621) at hudson.model.Run.execute(Run.java:1760) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:405)

from allure-plugin.

eroshenkoam avatar eroshenkoam commented on June 22, 2024

@F1ashhimself we tested this issue all day long but didn't reproduce it.
Can you install the latest version of plugin and try it one more time?

from allure-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.