[CI] Archive logs on failure
Some of our jobs that store artifacts do not specify a when:
value which results in the default on_success
(https://docs.gitlab.com/ee/ci/yaml/index.html#artifactswhen). E.g. this asan job fails, but one can not look at the logs: https://forge.3gpp.org/rep/ivas-codec-pc/ivas-codec/-/jobs/150357. This job, on the other hand, succeeded and has the logs, but they are not really necessary in that case: https://forge.3gpp.org/rep/ivas-codec-pc/ivas-codec/-/jobs/152240.
This MR sets when: on_failure
for all artifacts sections, also for those that previously had when:always
. Exceptions are the scheduled sanitizer tests (as those not only archive the logs, but also the error pattern which may be useful for comparison reasons), the coverage job and the complexity job. The latter two need to archive stuff every time so that gitlab pages job can pick them up.