I have 60+ Bamboo build agents. I want to find all build logs which have inside them a text string.
Is there a way to "grep" in all the logs?
May be there are certain approaches which may allow me to simplify the task. For each build I may see it's log as a regular text file (the file's URL is available at a Bamboo build page, it can be downloaded). Is there a place where all the files may be accessed via a command? May I iterate over each log one by one (REST API) using a programming language?
Hello Andrey,
Build logs are saved in $BAMBOO_HOME/xml-data/builds/PROJ-PLAN-JOB1/download-data/build_logs.
You can use a command like this inside this directory:
cat *.log | grep abcde
Where:
If this answer was helpful, please allow me to ask you to mark my answer as accepted in order to have it in the top of the thread, also helping other customers.
Thanks in advance!
Kind regards,
Felipe Kraemer
Atlassian Support
I need to iterate across all build agents, across all past builds and their logs. I have a bug in my own scripts and I want to find in logs known "sign" - text string - of the bug. I do not know anything about build names (the script is universal for all projects), build times and so on.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.