Jenkins: Log Parser Plugin Configuration

At Jenkins, I'm brand new. I would like to use a log parser plugin to parse jenkins console output. As per the documentation, I have to add a file containing my parsing rules. So my question is: How do I upload files in jenkins? Do I need to place them in the project workspace? My workspace is linked to a git repository. So should I commit this file?

For example, the file /tmp/rules.txt, how do I get the rules.txt file in the / tmp / folder (and which folder is it in, the / tmp workspace or / tmp / of the server itself)?

Do I need to stream it over ssh?

Thanks for the help!

+3


source to share


1 answer


This file should not be in the project workspace. You don't need to push it to Git. Just create the file somewhere on the machine where jenkins is running. You have to change the global config (/ jenkins / configure). There is a section called "Analyzing Console Output". In the description you can specify, for example, "Rules1" and in "Parsing rules file" - the path. Then, in every job you want to use, these rules set up the Post-build Actions -> Output Console (Build) session.



+4


source







All Articles