You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+25-1
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ steps:
14
14
- wait: ~
15
15
continue_on_failure: true
16
16
- plugins:
17
-
junit-annotate#v0.0.1:
17
+
junit-annotate#v1.0.0:
18
18
artifacts: tmp/junit-*.xml
19
19
```
20
20
@@ -26,6 +26,30 @@ The artifact glob path to find the JUnit XML files.
26
26
27
27
Example: `tmp/junit-*.xml`
28
28
29
+
### `job-uuid-file-pattern` (optional)
30
+
31
+
The regular expression (with capture group) that matches the job UUID in the junit file names. This is used to create the job links in the annotation.
32
+
33
+
To use this, configure your test reporter to embed the `$BUILDKITE_JOB_UUID` environment variable into your junit file names. For example `"junit-buildkite-job-$BUILDKITE_JOB_UUID.xml"`.
34
+
35
+
Default: `-(.*).xml`
36
+
37
+
## Developing
38
+
39
+
To test the junit parser (in Ruby) and plugin hooks (in Bash):
<testcaseclassname="spec.models.account_spec"name="Account#maximum_jobs_added_by_pipeline_changer returns 500 if the account is ABC"file="./spec/models/account_spec.rb"time="0.020013"/>
4
+
<testcaseclassname="spec.models.account_spec"name="Account#maximum_jobs_added_by_pipeline_changer returns 250 by default"file="./spec/models/account_spec.rb"time="0.967127">
<testcaseclassname="spec.models.account_spec"name="Account#maximum_jobs_added_by_pipeline_changer returns 700 if the account is XYZ"file="./spec/models/account_spec.rb"time="0.020013"/>
4
+
<testcaseclassname="spec.models.account_spec"name="Account#maximum_jobs_added_by_pipeline_changer returns 900 if the account is F00"file="./spec/models/account_spec.rb"time="0.020013"/>
<testcaseclassname="spec.models.account_spec"name="Account#maximum_jobs_added_by_pipeline_changer returns 500 if the account is ABC"file="./spec/models/account_spec.rb"time="0.020013"/>
4
+
<testcaseclassname="spec.models.account_spec"name="Account#maximum_jobs_added_by_pipeline_changer returns 250 by default"file="./spec/models/account_spec.rb"time="0.967127"/>
<testcaseclassname="spec.models.account_spec"name="Account#maximum_jobs_added_by_pipeline_changer returns 500 if the account is ABC"file="./spec/models/account_spec.rb"time="0.020013"/>
4
+
<testcaseclassname="spec.models.account_spec"name="Account#maximum_jobs_added_by_pipeline_changer returns 250 by default"file="./spec/models/account_spec.rb"time="0.967127">
<testcaseclassname="spec.models.account_spec"name="Account#maximum_jobs_added_by_pipeline_changer returns 700 if the account is XYZ"file="./spec/models/account_spec.rb"time="0.967127">
0 commit comments