Skip to content

Commit

Permalink
Merge pull request #3 from buildkite-plugins/prepare-for-release
Browse files Browse the repository at this point in the history
Prepare for release 🙏🏻
  • Loading branch information
pzeballos authored Jun 10, 2022
2 parents 7bc5875 + 8f08aa5 commit c893ffd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Test Collector Buildkite Plugin (WIP)
# Test Collector Buildkite Plugin

A Buildkite plugin for uploading [JSON](https://buildkite.com/docs/test-analytics/importing-json) or [JUnit](https://buildkite.com/docs/test-analytics/importing-junit-xml) files to [Buildkite Test Analytics](https://buildkite.com/test-analytics)

## 👉 Usage
## Example

### Upload a JUnit file

Expand Down
5 changes: 4 additions & 1 deletion hooks/pre-exit
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ if [[ -z "${FORMAT}" ]]; then
exit 1
fi

readarray -d '' matching_files < <(find . -path "./${FILES_PATTERN}" -print0 | sort -z)
matching_files=()
while IFS=$'' read -r matching_file ; do
matching_files+=("$matching_file")
done < <(find . -path "./${FILES_PATTERN}")

if [[ "${#matching_files[@]}" -eq "0" ]]; then
echo "No files found matching '${FILES_PATTERN}'"
Expand Down
19 changes: 10 additions & 9 deletions plugin.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
name: Test Collector Buildkite Plugin
description: ...
name: Test Collector
description: Uploads you JSON or JUnit files to Buildkite Test Analytics
author: https://github.com/buildkite
requirements:
- docker
- curl
configuration:
properties:
files:
type: string
artifacts:
type: string
format:
enum:
- json
- junit
api-token-env-name:
type: string
oneOf:
- required:
- files
- required:
- artifacts
debug:
type: boolean
timeout:
type: integer
required:
- files
- format
additionalProperties: false

0 comments on commit c893ffd

Please sign in to comment.