buildkite / agent

The Buildkite Agent is an open-source toolkit written in Go for securely running build jobs on any device or network
https://buildkite.com/
MIT License
806 stars 295 forks source link

Multi module artifact upload glob patterns #836

Open adrianbk opened 5 years ago

adrianbk commented 5 years ago

Hi,

Given a project with multiple sub-modules (50 directories), how can I specify an artifact upload pattern to upload all test reports, for the entire project, without having to specify each of the modules?

Currently it seems I have to specify each sub module as follows:

  artifact_paths:
  - "module-a/build/reports/**/*"
  - "module-b/build/reports/**/*"
  - "module-c/build/reports/**/*"
....
....
   - "module-x/build/reports/**/*"

Ideally I could specify something like:

  artifact_paths:
  - "**/build/reports/**/*"
  - "**/build/coverage/**/*"
  - "**/build/libs/**/*"

Which would pick up all artifacts under the reports, coverage and lib directories of all sub modules.

lox commented 5 years ago

Thanks for the suggestion! Interesting use-case. We use github.com/mattn/go-zglob presently for globbing. I'll investigate if it's supported.