Modify build log update to incremental
Currently a whole build log is send while updating build status. We should change it to an incremental update. That way only new log lines would be send to GitLab CI coordinator.
This will also entail a new endpoints for CI API in GitLab to be done:
-
PUT /ci/api/v1/builds/:build_id/trace.txt
- when a whole build log should be updated -
PATCH /ci/api/v1/builds/:build_id/trace.txt
- for an incremental changes (appended to log file)
Related GitLab CE issue can be found here: gitlab-org/gitlab-ce#14537
/cc @ayufan