Jenkins it is a powerful tool that have lots of features built on it, one of them is that you can put files inside your job directory and those can be downloaded by the users inside the Jenkins build.
This is as easy as just making sure your files are copied on the following path:
<jenkinsPath>/workspace/<buildName>/$BUILD_NUMBER
Using the variable $BUILD_NUMBER is a good idea so you can organize your build files with the corresponding build.
There is an example of how you can see them on your Jenkins on the following path http://<jenkinsHost>/job/<jobName>/ws/<buildNumber>/
This is a good feature that will allow you to output data from a Jenkins job, such as the example above, there are some output files from a log Crawler job that will be available to be downloaded directly from Jenkins without the need to ssh to the box.
This is just an explanation of what you can find here https://stackoverflow.com/questions/23670260/how-to-download-a-file-from-the-jenkins-job-build-folder
Comments