How to access generated files for failed build

My integration tests are failing in Gitlab CI but passing on my desktop. The service fails to start. How can I troubleshoot?

In Jenkins, I would be able to access generated log files (along with any other generated files) from the last failed build. How can I do this in Gitlab CI?

I found an option for archiving build artifacts, but it only seems to work if the build passes.