allure-plugin
allure-plugin copied to clipboard
Copy Allure report from Docker slave to Jenkins Node?
This is not a bug, can someone please help!?
I am using docker image to execute my python automation suite (PyTest) the build is triggered in the Jenkins pipeline, the allure reports are generated inside the docker agent and I can view the reports in the workspace folder, to open the allure reports as build artefacts, we have installed the allure plugin in Jenkins node and we need to copy the report folder from docker slave to node open the allure report. we have come across about stash and un-stash, can someone please guide us?
@kumarkrish85 you can create a new directory called allure-results then copy the data from the container to the jenkins node workspace.
sh 'mkdir -p target/allure-results'
sh 'docker cp container_name:/directory_of_the_results ../target/allure-results'
This will give allure dls the data to generate the reports.