Skip to content

Commit

Permalink
More robust parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Zentrik committed Jun 26, 2024
1 parent ab668c3 commit 704bdaf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion buildkite_logs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ function get_log(sha, branch)
details_json = HTTP.get(details_url).body |> JSON3.read
idx = findfirst(x -> x.name == ":linux: build x86_64-linux-gnu", details_json.jobs)

if details_json.jobs[idx].state != "finished"
try
if details_json.jobs[idx].state != "finished"
return :not_finished
end
catch err
println("Error processing build status for $sha")
println("Error: $err")
return :not_finished
end

Expand Down

0 comments on commit 704bdaf

Please sign in to comment.