Allure-results does not exists - cant change the result path
See original GitHub issueI am using Allure 2.28.1 plugin for Jenkins via declarative pipeline as below. But I could not able to read allure reports. So reports seems generated below ~/workspace/selenium_tests@2/ApiTestAutomation/ApiHubTestAutomation/target
but I could not able to change the path in script.
How can I change the allure path to read the reports from below path ? Or even if I use dir and specify the path, why allure ignore this path to generate reports ?
ubuntu@play-0:~/workspace/selenium_tests@2/ApiTestAutomation/ApiHubTestAutomation/target$ ls
allure-results generated-test-sources maven-status surefire surefire-reports test-classes
[selenium_tests] $ /home/ubuntu/tools/ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation/Allure_2.13.5/bin/allure generate -c -o /home/ubuntu/workspace/selenium_tests/allure-report
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
allure-results does not exists
Report successfully generated to /home/ubuntu/workspace/selenium_tests/allure-report
Allure report was successfully generated.
Creating artifact for the build.
Artifact was added to the build.
Here is what I tried
steps {
script {
dir ('~/workspace/selenium_tests@2/ApiTestAutomation/ApiHubTestAutomation') {
allure([
includeProperties: false,
jdk: '',
properties: [],
reportBuildPolicy: 'ALWAYS',
results: [[path: 'target/allure-results']]
])
}
}
}
}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:25 (8 by maintainers)
Top Results From Across the Web
allure-results does not exists in Jenkins - Stack Overflow
Here is the solution: 1. Inside your work space (For me it is D:\m\Automation Project\Tests), Create a folder named "target" containing two ...
Read more >allure-framework/allure-core - Gitter
My test passed but Allure-results does not have .xml file . I have this error: Failed parsing stats for Allure reporter: attribute value...
Read more >Allure Results Directory Path Setup - YouTube
When you execute your tests, the allure results folder is generated in the project root directory. If you want to change the default...
Read more >Allure Reporter - WebdriverIO
outputDir defaults to ./allure-results . After a test run is complete, you will find that this directory has been populated with an .xml...
Read more >Allure-Results Does Not Exists In Jenkins - ADocLib
check the workspace from jenkins and see if allureresults directory is there too let me show you the allure result path set in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@skumar-nl for me it’s working, check the example https://github.com/allure-framework/allure2/issues/1133#issuecomment-692653151
@semihural try doing this
ws
allows you to create a custom workspace with the name that you want. Usews
when you generate the results and when you generate the report. In my case I’m creating a custom workspace namedmy-workspace
. I’m usingws
in every stage.