Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to help people that forget to quote their upload globs #740

Merged
merged 1 commit into from Apr 23, 2018

Conversation

toolmantim
Copy link
Contributor

@toolmantim toolmantim commented Apr 23, 2018

I did this in a script, to upload some JUnit xml files:

buildkite-agent artifact upload *.xml

and it failed with this error message:

image

This had me very confused for a few hours, until I realised that there was a second argument to upload called "upload destination" — I had assumed that the error message on upload destination was that I had misconfigured my agent, or it was a backend problem.

What I needed to do was:

buildkite-agent artifact upload "*.xml"

This PR tries to provide a less confusing error message if people accidentally provide a second argument to the artifact upload command.

@toolmantim toolmantim requested a review from lox April 23, 2018 01:37
Copy link
Contributor

@lox lox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, this seems like a good improvement!

@toolmantim
Copy link
Contributor Author

Yay, thanks @lox! 🙌🏼

@toolmantim toolmantim merged commit c6febc0 into master Apr 23, 2018
@toolmantim toolmantim deleted the improve-artifact-upload-error-handling branch April 23, 2018 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants