gitlab-ci: store the build log on failure