Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.07 KB

File metadata and controls

52 lines (34 loc) · 1.07 KB

Annotate From File Buildkite Plugin

Annotates the build with the contents of a file

This is intended to be used with other plugins like docker-compose.

Example

Add the following to your pipeline.yml:

steps:
  - command: ls > /app/output/output.md
    plugins:
      - docker-compose#v3.7.0:
          run: app
          volumes:
            - "./output:/app/output"
      - phcyso/annotate-from-file#v1.0.0:
          path: './output/output.md'

Configuration

path (Required, string)

The path to the file to show as an annotation.

must_exist (Optional, boolean, default: false)

If must_exist is set to true then the plugin will exit non zero if the files given in path does not exist

style (Optional, string, default: "info")

One of the allowed annotation styles

Developing

To run the tests:

docker-compose run --rm tests

Contributing

  1. Fork the repo
  2. Make the changes
  3. Run the tests
  4. Commit and push your changes
  5. Send a pull request