A Buildkite plugin which will download some files before running a build step
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Richard van der Hoff c13e02f235 README etc
2019-11-08 00:34:55 +00:00
.buildkite gah 2019-11-08 00:30:06 +00:00
hooks README etc 2019-11-08 00:34:55 +00:00
LICENSE add a license file 2019-11-07 23:18:09 +00:00
plugin.yml README etc 2019-11-08 00:34:55 +00:00
README.md README etc 2019-11-08 00:34:55 +00:00

Download plugin for Buildkite

A Buildkite plugin which will download some files before running a build step.

The plugin creates a new directory for the downloads, and sets an environment variable called BUILDKITE_DOWNLOADS_PATH with the name of that directory. The directory is deleted after the build.

Example

The following pipeline downloads this file and then prints it out.

steps:
  - command: cat $${BUILDKITE_DOWNLOADS_PATH}/README.md
    plugins:
      - matrix-org/download#v1.1.0:
          urls:
            - https://raw.githubusercontent.com/matrix-org/download-buildkite-plugin/master/README.md

(The example above uses $$ to access the environment variable with the downloads directory, because that variable is not set when the pipeline file is interpolated.)

Configuration

urls (required, array)

The list of URLs to download.