Skip to content

vespa-engine/factory-reporter-buildkite-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Factory Reporter Buildkite Plugin

Reports a build to Vespa Factory

Example

Add the following to your pipeline.yml:

steps:
  - command: ls
    plugins:
      - ./.buildkite/plugins/factory-reporter:
          pipeline-id: 123
          last-step: true
          job-type: build

Configuration

pipeline-id (Required, integer)

The id of the pipeline

last-step (Optional, boolean)

Set to true if this is the last step in the pipeline

job-type (Optional, string)

The type of job. Defaults to build.

ignore-fail (Optional, boolean)

Set to true to skip reporting failure to factory for this step. Defaults to false.

build-platform (Optional, string)

The factory build platform. Defaults to opensource_centos7

Run tests locally

This module uses BATS for testing.

To run the tests locally with Buildkite Plugin Tester, use the following command (from the root of the repository):

$ podman run -it --rm -v "$PWD:/plugin:ro" buildkite/plugin-tester

Or, even better (and much faster), install bats locally with npm:

$ brew install node
$ sudo npm install -g bats bats-assert bats-support bats-mock

Export the BATS_PLUGIN_PATH environment variable to point to the global npm modules directory, which contains the BATS plugins:

export BATS_PLUGIN_PATH="$(npm root -g)"

Then run all tests with:

bats -r tests

To run a specific test, use:

bats tests/test_name.bats

Tests can also be run in IntelliJ IDEA with the BashSupport Pro plugin. Ensure the BATS_PLUGIN_PATH environment variable is exported before launching the IDE to avoid setting it in each run configuration.

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages