File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -414,7 +414,6 @@ let generate_status_notification ~(job_log : (string * string) list) ~(cfg : Con
414
414
in
415
415
let text = Some (String .concat "\n " @@ List .concat [ commit_info ; branches_info ]) in
416
416
let attachment = { empty_attachments with mrkdwn_in = Some [ " fields" ; " text" ]; color = Some color_info; text } in
417
- let reply_of_log log = log |> Text_cleanup .cleanup |> String .split_on_char '\r' |> String .concat "\n " in
418
417
let handler =
419
418
match job_log with
420
419
| [] ->
@@ -425,7 +424,10 @@ let generate_status_notification ~(job_log : (string * string) list) ~(cfg : Con
425
424
let files =
426
425
job_log
427
426
|> List. map (fun (job_name , job_log ) ->
428
- { name = job_name; title = None ; alt_txt = None ; content = reply_of_log job_log })
427
+ let clean = job_log |> Text_cleanup. cleanup |> String. split_on_char '\r' |> String. concat " \n " in
428
+ (* Buildkite has different "sections" on their builds logs. The commands we run come only after this line. *)
429
+ let content = Stre. after clean " ~~~ Running commands\n\n " in
430
+ { name = job_name; title = None ; alt_txt = None ; content })
429
431
in
430
432
Some
431
433
(fun (send_file : file:file_req -> (unit, string) result Lwt.t ) (res : Slack_t.post_message_res ) ->
You can’t perform that action at this time.
0 commit comments