'Where on GitLab.com do I find the pipeline error logs?

I've been working on getting a .gitlab-ci.yml pipeline to work but cannot find where the logs go.

GitLab.com message tells me

npm ERR!     /root/.npm/_logs/2022-05-06T09_39_43_597Z-debug.log

I do not see this folder created on my project within GitLab.com so where and how do I get to the log?

After 51 iterations I have made a little bit of progress. 1st time seeing Green. little bit of progress



Solution 1:[1]

That can be seen by adding debug logging to your .gitlab-ci.yml file.Once you add it ,run the job again and you can get a detailed log

Solution 2:[2]

You could use artifacts to keep the log file, if the job fails. For example:

my job:
  ...
  artifacts:
    paths:
      - "*.log"
    when: on_failure

I'm not sure the paths pattern is correct. So, perhaps, it is neccessary to use **/*.log instead of *.log. But I hope, the idea is clear.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Arun
Solution 2