buildkite / buildkite/agent

Multi module artifact upload glob patterns

Open
#836 1 comment 2 reactions 0 assignees View on GitHub
artifacts enhancement
Dominant language
Go
Stars
1.1k
Forks
378
Avg merge
2d 6h
Merged PRs (30d)
74

Description

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:

```yaml
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.

Contributor guide

Open the contributing guide

Research direction

The issue names no file or test. Start by locating the Go agent code that handles artifact_paths and inspect how glob patterns are expanded. Done means recursive patterns such as **/build/reports/**/* select artifacts across all sub-modules without listing each module.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
ci-cd
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.