parent
0725c28069
commit
4019b0d872
|
@ -58,12 +58,12 @@ curl -X PUT "https://gitlab.example.com/ci/api/v1/builds/1234" -F "token=t0k3n"
|
||||||
|
|
||||||
### Incremental build trace update
|
### Incremental build trace update
|
||||||
|
|
||||||
Using this method you need to send trace content as a request body. You need also to provide the `Content-Range` header
|
Using this method you need to send trace content as a request body. You also need to provide the `Content-Range` header
|
||||||
with a range of sent trace part. Note, that you need to send parts in a proper order, so the begining of the part
|
with a range of sent trace part. Note that you need to send parts in the proper order, so the begining of the part
|
||||||
must starts just after the end of the previous part. If you will mess the parts, then GitLab CI AIP will return `416
|
must start just after the end of the previous part. If you provide the wrong part, then GitLab CI API will return `416
|
||||||
Range Not Satisfiable` response with a header `Range: 0-X`, where `X` is the current trace length.
|
Range Not Satisfiable` response with a header `Range: 0-X`, where `X` is the current trace length.
|
||||||
|
|
||||||
For example: if you receive `Range: 0-11` in the response, then your next part must contains `Content-Range: 11-...`
|
For example, if you receive `Range: 0-11` in the response, then your next part must contain a `Content-Range: 11-...`
|
||||||
header and a trace part covered by this range.
|
header and a trace part covered by this range.
|
||||||
|
|
||||||
For a valid update API will return `202` response with:
|
For a valid update API will return `202` response with:
|
||||||
|
|
|
@ -57,7 +57,7 @@ module Ci
|
||||||
# Body:
|
# Body:
|
||||||
# content of logs to append
|
# content of logs to append
|
||||||
# Headers:
|
# Headers:
|
||||||
# Content-Range (required) - range of conntent that was sent
|
# Content-Range (required) - range of content that was sent
|
||||||
# BUILD-TOKEN (required) - The build authorization token
|
# BUILD-TOKEN (required) - The build authorization token
|
||||||
# Example Request:
|
# Example Request:
|
||||||
# PATCH /builds/:id/trace.txt
|
# PATCH /builds/:id/trace.txt
|
||||||
|
|
Loading…
Reference in New Issue