Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
2 views
in DevOps and Agile by (29.3k points)

I'm quite new in Jenkins. I would like to use the log parser plugin to parse the console output of Jenkins. As the documentation explains I have to add a file, which is containing my parsing rules. So there is my question: How do I upload files to Jenkins? Do they need to be located in the project's workspace? My workspace is connected with a git repository. So I have to commit that file?

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

Do I have to transfer it via ssh?

1 Answer

0 votes
by (50.2k points)

For this issue, This file doesn't have to be in the project's workspace. You don't have to upload it on Git. Just create a file somewhere on the computer, where Jenkins runs. You must change Global Configuration (/Jenkins/configure). There is a section "Console Output Parsing". In the description, you can put this file.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...