Hi Jenkins Devs,
In teamconcert-plugin, I am working on a feature to collect some diagnostic data when the plugin runs in a build. I intend to store this information in a text file under the build root directory, for instance <jenkinsdir>/jobs/<jobname>/builds/<buildnumber>/teamconcert/diagnostics/....The files will be stored when the plugin runs in the master context.
I don't intend to expose this data thorugh the UI. Admins would collect these files from the build directory when required from the Jenkins master.
I have two questions
1. Is it OK for the plugin to access build root directory (build.getRootDir())and store content (hence performing file operations)?
2. Is there a way for the plugin to upload text files to the build, such that they are available as downloads from the Jenkins build? Although not a necessity right now, I want to know if such an option exists.