Writing plugin specific data for a build in build directory

22 views
Skip to first unread message

Lakshmi Narasimhan

unread,
Mar 12, 2019, 8:59:02 AM3/12/19
to Jenkins Developers
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.

Ullrich Hafner

unread,
Mar 12, 2019, 9:12:41 AM3/12/19
to Jenkins Developers
Am 12.03.2019 um 13:59 schrieb Lakshmi Narasimhan <vaikuntam....@gmail.com>:

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)?

Yes. E.g. most reporting plugins store their results there. 

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.

Did you check the list of extension points?


--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/25178378-c0ac-435b-a36c-748f95b236d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages