A flexible lightweight multi-language test report tool with the possibility to add steps, attachments, parameters and so on.
Good morning! I am randomly getting
{"meta_data":{"message":"Processing files for project_id 'default'. Try later!"}}
in the email when I render, export and email the Allure Test run report.
95% time everything works fine and I see the report in the email but randomly I start getting this instead of the report and the only way to fix it is to clean history from the UI. I am using Pytest and basically just followed this example (https://github.com/fescobar/allure-docker-service-examples/tree/master/allure-docker-python-pytest-example) to build up my testbed.
Can someone plz help me w this? ( @fescobar )
(I apologize for any typos etc ... my first day on Gitter)
@heavy-razzer I used https://github.com/fescobar/allure-docker-service-examples/tree/master/allure-docker-python-pytest-example to build up.
Then I used emailable-report/render to render the emailable report and emailable-report/export to export the report. Got the APIs from https://github.com/fescobar/allure-docker-service#allure-api
Then I used basic Python libraries (SMTP and MimeMessage) to insert the report in the email and email it at the end of the test run.
Hope this helps.
@dzmitrytesting you have to install allure in your jenkins master. Check Configuration> Tools
@KarthikManjrakar the server changed. Use the url https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.14.0/allure-commandline-2.14.0.zip
Hi everyone. Trying to add allure reporter to Jenkins pipeline but faced with the following error (above)
I have added it to global tools installer from maven central (not url, just version from dropdown)
here is mine pipeline:
stage('Save report') {
steps {
stash includes: 'reports/allure-results/**', name: 'reports'
}
}
}
post {
always {
dir('test') {
unstash 'reports'
}
// sh 'which allure'
// sh 'npm install -g allure-comandline'
// sh 'which allure'
sh 'chmod 777 test/reports/allure-results'
script {
allure results: [[path: 'test/reports/allure-results']]
}
}
}
@fescobar also tried to set up this url in configuration
allure --version
/var/lib/jenkins/workspace/....@tmp/durable-c5c5e24b/script.sh: 1: /var/lib/jenkins/workspace/....@tmp/durable-c5c5e24b/script.sh: allure: not found
interesting. It's not able.
Just additional thing that agent is:
agent {
dockerfile {
args '-u root:root'
}
}
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 that removing your post block just in case