Skip to content

Commit fc9c207

Browse files
authored
Merge pull request #235 from buildkite-plugins/SUP-2619
[SUP-2619] Update README.md with details on support for different artifact paths
2 parents 2905ba6 + 3fce8bd commit fc9c207

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,26 @@ steps:
1818
artifacts: tmp/junit-*.xml
1919
```
2020
21+
For scenarios where you have different artifact paths that you want to add as annotation then call the plugin multiple times in the pipeline with different contexts as shown below:
22+
23+
```yml
24+
steps:
25+
- command: test.sh
26+
parallelism: 50
27+
artifact_paths: tmp/junit-*.xml
28+
- command: anothertest.sh
29+
artifact_paths: artifacts/junit-*.xml
30+
- wait: ~
31+
continue_on_failure: true
32+
- plugins:
33+
- junit-annotate#v2.5.0:
34+
artifacts: tmp/junit-*.xml
35+
- plugins:
36+
- junit-annotate#v2.5.0:
37+
artifacts: artifacts/junit-*.xml
38+
context: junit-artifacts
39+
```
40+
2141
## Configuration
2242
2343
### `artifacts` (required)

0 commit comments

Comments
 (0)