New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use jenkins own mechanisms for archiving / managing artifacts #30
Use jenkins own mechanisms for archiving / managing artifacts #30
Conversation
added arguments - disableCopyFilesToBuildDir (default: false) - archiveDirName (default: robot-plugin)
EDIT: Nevermind, I handled those. |
Hi @pipapo-sl, The current implementation doesn't provide the new configuration parameters in the snippet generator for pipelines or freestyle jobs. Could you please add necessary configurations to the jelly files with appropriate help texts? |
Hi @asimell, |
@pipapo-sl Feel free to modify your PR. Less new stuff means less stuff to maintain in the future. If the same functionality can be achieved by introducing less new configurations, I think it's worth doing. |
remove parameter disableCopyFilesToBuildDir and implicate its value.
remove parameter disableCopyFilesToBuildDir and implicate its value.
@asimell OK, thank you. I changed the code, including the original description of the proposal. Now the name 'disableCopyFilesToBuildDir' of the branch lost its meaning :). |
print Messages.robot_publisher_copying() and Messages.robot_publisher_done() only if copy is really done.
Jenkins robot-plugin holds its own copy of build artifacts under builds\x\robot-plugin and it has no possibility to mark old builds to delete. So the folder 'robot-plugin' is never cleaned up. (Jenkins offers a configurable Build Discarder Plugin for this). And the folder may be a copy of existing archived test results (Jenkins offers archiveArtifacts plugin for this).
When introducing following argument:
it is possible so suppress copying test results by jenkins robot-plugin and point to the 'archive' dir of jenkins to use jenkins own mechanisms for archiving / managing test results. Using archiveArtifacts it is possible to archive the results and using build discarder plugin it is possible to clean up old results.
archiveArtifacts artifacts: "${env.JOB_NAME} ${BUILD_ID}/**/*.*"
robot( outputPath : "", passThreshold : 100, unstableThreshold: 100, outputFileName : "${env.JOB_NAME} ${BUILD_ID}/output.xml", reportFileName : "${env.JOB_NAME} ${BUILD_ID}/report.html", logFileName : "${env.JOB_NAME} ${BUILD_ID}/log.html", otherFiles : "**/*", archiveDirName : "archive" )