Port of 30696-long-build-log-improvement to EE
Port of 30696-long-build-log-improvement to EE
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10660
Port of 30696-long-build-log-improvement to EE
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10660