buildkite / buildkite/agent

Artifact upload needs option for stripping prefix paths

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

Description

It would be nice to have an option e.g. "--remove-prefix-paths" or similar

So instead of "target/build/myfile.jpg" it would be "myfile.jpg" when trying to do an artifact upload.

I am aware of the "cd to directory" method but it is a little cumbersome.

Contributor guide

Open the contributing guide

Research direction

Start by locating the artifact upload command and its option parsing. Verify that uploading target/build/myfile.jpg can produce myfile.jpg when the prefix-removal option is enabled, while existing behavior remains unchanged.

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.