Skip to content

Commit

Permalink
Merge pull request #228 from dhaspden/master
Browse files Browse the repository at this point in the history
Fix issue with CircleCI parallel workflows not picking up separate builds
  • Loading branch information
parroty committed Sep 22, 2020
2 parents 5de0b8a + f49517a commit 33e815d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/excoveralls/circle.ex
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ defmodule ExCoveralls.Circle do

defp get_job_id do
# When using workflows, each job has a separate `CIRCLE_BUILD_NUM`, so this needs to be used as the Job ID and not
# the Job Number.
System.get_env("CIRCLE_BUILD_NUM")
# the Job Number. If the job is configured with `parallelism` greater than one, then the `CIRCLE_NODE_INDEX` is
# used to differentiate between separate containers running the same job.
"#{System.get_env("CIRCLE_BUILD_NUM")}-#{System.get_env("CIRCLE_NODE_INDEX")}"
end

defp get_number do
Expand Down

0 comments on commit 33e815d

Please sign in to comment.