Skip to content

Latest commit

 

History

History
72 lines (46 loc) · 1.94 KB

README.md

File metadata and controls

72 lines (46 loc) · 1.94 KB

Aviator Test Reporter Buildkite Plugin Build status

A Buildkite plugin for uploading JUnit files to Aviator 🛩️

Options

These are all the options available to configure this plugin's behaviour.

Required

files (string)

Pattern of files to upload, relative to the checkout path (./ will be added to it). May contain * to match any number of characters of any type (unlike shell expansions, it will match / and . if necessary).

Optional

api-key-env-name (string)

Name of the environment variable that contains the Aviator API token. Defaults to: AVIATOR_API_TOKEN

api-url (string)

Full URL for the API to upload to. Defaults to https://upload.aviator.co/api/test-report-uploader

Examples

To upload all files from an XML folder from a build step:

steps:
  - label: "🔨 Test"
    command: "make test"
    plugins:
      - aviator#v1.0.0:
          files: "test/junit-*.xml"

Using build artifacts

You can also use build artifacts generated in a previous step:

steps:
  # Run tests and upload 
  - label: "🔨 Test"
    command: "make test --junit=tests-N.xml"
    artifact_paths: "tests-*.xml"

  - wait

  - label: ":plane: Aviator"
    command: buildkite-agent artifact download tests-*.xml
    plugins:
      - aviator#v1.0.0:
          files: "tests-*.xml"

⚒ Developing

You can use the bk cli to run the pipeline locally:

bk local run

👩‍💻 Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/buildkite-plugins/aviator-buildkite-plugin

📜 License

The package is available as open source under the terms of the MIT License.