Skip to content

A buildkite plugin that creates annotations from a given file path

Notifications You must be signed in to change notification settings

blstrco/annotate-from-file-buildkite-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A buildkite plugin that creates annotations from a given file path

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Shell 100.0%