Reports a build to Vespa Factory
Add the following to your pipeline.yml:
steps:
- command: ls
plugins:
- ./.buildkite/plugins/factory-reporter:
pipeline-id: 123
last-step: true
job-type: build
The id of the pipeline
Set to true if this is the last step in the pipeline
The type of job. Defaults to build.
Set to true to skip reporting failure to factory for this step. Defaults to false.
The factory build platform. Defaults to opensource_centos7
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-testerOr, even better (and much faster), install bats locally with npm:
$ brew install node
$ sudo npm install -g bats bats-assert bats-support bats-mockExport 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 testsTo run a specific test, use:
bats tests/test_name.batsTests 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.