Trying to generate allure-report for my testng results in a Jenkins pipeline. For which I am using the allure-report maven plugin and publish-html Jenkins plugin. But the problem is the allure-report folder path is shown in double quotes (in the workspace folder structure):
"/vol_01/jenkins/workspace/Test Run/Sanity/core/target/allure-report"
That's why the htmlpublisher plugin is unable to identify the directory and is failed:
ERROR: Specified HTML directory '/vol_01/jenkins/workspace/Test Run/Sanity/core/target/allure-report' does not exist.
Even though I can open the folder and see the report properly.
pom.xml (snippet):
<plugin>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-maven</artifactId>
<version>2.10.0</version>
<configuration>
<reportVersion>2.13.2</reportVersion>
<reportDirectory>${basedir}/target/allure-report</reportDirectory>
</configuration>
</plugin>
Jenkinsfile (snippet):
publishHTML target: [
allowMissing: false,
alwaysLinkToLastBuild: true,
keepAll: true,
reportDir: 'target/allure-report',
reportFiles: 'index.html',
reportName: 'Allure Report'
]
Any clue?