I have some gitlab CI pipelines that consist of dozens of jobs -- sometimes I need to find something that might appear in a job without knowing which one. I can manually select each job in the web interface and review the associated log, but doing that for each job is infeasible.
Is there some way (ideally as an unprivileged gitlab user) to retrieve/aggregate the output from all the jobs of a given pipeline?
In case it matters, I'm using version 12.5.X-ee.
You could use the GitLab Jobs API to aggregate all the job traces, and write a script with something along the lines of:
aggregate job logs)aggregate job logsjob), and get their job logsNote, that you will need to create a personal-access-token, and then use it in the CI job to access the API. There's not a great way with storing your access token apart from as a custom environment variable, and then accessing that variable in the
.gitlab-ci.yml.HTH