-
Notifications
You must be signed in to change notification settings - Fork 300
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
Pipeline parsing attempts to interpolate invalid environment variables #715
Comments
It's a tricky one. I'd say it probably makes sense to ignore numeric vars, but I'd suggest escaping dollar signs in your commit messages or content for generated pipelines, otherwise it will crop up some other way. |
@DazWorrall that pipeline snippet, was that a literal "Don't create remote checkouts for $0 checkouts" in your pipeline.yml? Or was it interpolated in there from another pipeline upload? |
Sorry for the delay @keithpitt, I was travelling. It was a literal { trigger: 'my-pipeline', build: { message: ENV['BUILDKITE_MESSAGE'] }}.to_yaml 2 small and 1 larger thing here I think:
|
Ohh, right right. I see now. A hack for now is to change:
...to...
So our interpolation gear picks it up. But I totally agree that we should be ignoring $0 and not throwing an error. |
Could we add a “—no-interpolation” to the upload command?
… On 11 Apr 2018, at 9:56 am, Keith Pitt ***@***.***> wrote:
Ohh, right right. I see now. A hack for now is to change:
ENV['BUILDKITE_MESSAGE']
...to...
$BUILDKITE_MESSAGE
So our interpolation gear picks it up. But I totally agree that we should be ignoring $0 and not throwing an error.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
We would gobble that right up for sure. |
I think that's a good idea as well! |
Trying to upload a pipeline with
buildkite-agent pipeline upload
containing this snippet:Fails with:
It's trying to interpolate the
$0
I guess. As a digit it not a valid variable name I feel like this shouldn't break the parser - it really shouldn't attempt to parse it - wdyt @lox?The text was updated successfully, but these errors were encountered: