We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f38450 commit afecb07Copy full SHA for afecb07
hooks/command
@@ -2,6 +2,11 @@
2
3
set -euo pipefail
4
5
+if [[ -z "${BUILDKITE_PLUGIN_JUNIT_ANNOTATE_ARTIFACTS:-}" ]]; then
6
+ echo "🚨 Missing artifacts configuration for the plugin"
7
+ exit 1
8
+fi
9
+
10
PLUGIN_DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)/.."
11
MAX_SIZE=1024 # in KB
12
tests/command.bats
@@ -148,7 +148,8 @@ export annotation_input="tests/tmp/annotation.input"
148
149
assert_failure
150
151
- assert_output --partial "BUILDKITE_PLUGIN_JUNIT_ANNOTATE_ARTIFACTS: unbound variable"
+ assert_output --partial "Missing artifacts configuration for the plugin"
152
+ refute_output --partial ":junit:"
153
}
154
155
@test "fails if the annotation is larger than 1MB" {
0 commit comments