File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ docker \
30
30
--volume " $artifacts_dir :/junits" \
31
31
--volume " $PLUGIN_DIR /ruby:/src" \
32
32
--env " BUILDKITE_PLUGIN_JUNIT_ANNOTATE_JOB_UUID_FILE_PATTERN=${BUILDKITE_PLUGIN_JUNIT_ANNOTATE_JOB_UUID_FILE_PATTERN:- } " \
33
+ --env " BUILDKITE_PLUGIN_JUNIT_ANNOTATE_FAILURE_OUTPUT=${BUILDKITE_PLUGIN_JUNIT_ANNOTATE_FAILURE_OUTPUT:- } " \
33
34
ruby:2.5-alpine /src/bin/annotate /junits \
34
35
> " $annotation_path "
35
36
@@ -39,4 +40,4 @@ if grep -q "<details>" "$annotation_path"; then
39
40
echo " --- :buildkite: Creating annotation"
40
41
# shellcheck disable=SC2002
41
42
cat " $annotation_path " | buildkite-agent annotate --context junit --style error
42
- fi
43
+ fi
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ load "$BATS_PATH/load.bash"
20
20
stub buildkite-agent " artifact download junits/*.xml /plugin/tests/tmp//plugin/junit-artifacts : echo Downloaded artifacts" \
21
21
" annotate --context junit --style error : echo Annotation added"
22
22
23
- stub docker " --log-level error run --rm --volume /plugin/tests/tmp//plugin/junit-artifacts:/junits --volume /plugin/hooks/../ruby:/src --env BUILDKITE_PLUGIN_JUNIT_ANNOTATE_JOB_UUID_FILE_PATTERN= ruby:2.5-alpine /src/bin/annotate /junits : echo '<details>Failure</details>'"
23
+ stub docker " --log-level error run --rm --volume /plugin/tests/tmp//plugin/junit-artifacts:/junits --volume /plugin/hooks/../ruby:/src --env BUILDKITE_PLUGIN_JUNIT_ANNOTATE_JOB_UUID_FILE_PATTERN= --env BUILDKITE_PLUGIN_JUNIT_ANNOTATE_FAILURE_OUTPUT= ruby:2.5-alpine /src/bin/annotate /junits : echo '<details>Failure</details>'"
24
24
25
25
run " $PWD /hooks/command"
26
26
@@ -45,7 +45,7 @@ load "$BATS_PATH/load.bash"
45
45
46
46
stub buildkite-agent " artifact download junits/*.xml /plugin/tests/tmp//plugin/junit-artifacts : echo Downloaded artifacts"
47
47
48
- stub docker " --log-level error run --rm --volume /plugin/tests/tmp//plugin/junit-artifacts:/junits --volume /plugin/hooks/../ruby:/src --env BUILDKITE_PLUGIN_JUNIT_ANNOTATE_JOB_UUID_FILE_PATTERN= ruby:2.5-alpine /src/bin/annotate /junits : echo No test errors"
48
+ stub docker " --log-level error run --rm --volume /plugin/tests/tmp//plugin/junit-artifacts:/junits --volume /plugin/hooks/../ruby:/src --env BUILDKITE_PLUGIN_JUNIT_ANNOTATE_JOB_UUID_FILE_PATTERN= --env BUILDKITE_PLUGIN_JUNIT_ANNOTATE_FAILURE_OUTPUT= ruby:2.5-alpine /src/bin/annotate /junits : echo No test errors"
49
49
50
50
run " $PWD /hooks/command"
51
51
@@ -54,4 +54,4 @@ load "$BATS_PATH/load.bash"
54
54
unstub mktemp
55
55
unstub buildkite-agent
56
56
unstub docker
57
- }
57
+ }
You can’t perform that action at this time.
0 commit comments