Gitlab - Uploading artifacts as "archive" to coordinator... too large archive

We're using Gitlab CI for building a project that compiles a lot of big files. All of a sudden a working job failed. We did not change anything in the job configuration and the build was just fine but the uploading of the artifacts in the end failed.

error-uploading-artifacts-as-archive-to-coordinator-too-large-archive-2.png

After some research I found out that the maximum artifact size was exceeded. You can set the maximum artifact size in the Gitlab settings on instance, group or project level.

Update 03.05.2022:

If you are using the default nginx of the gitlab docker container, like we do, you need to set the client_max_body_size accordingly in your omnibus or gitlab.rb config. E.g.: nginx['client_max_body_size'] = "2000m"