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

A command with single quotes fails to be parsed by the plugin on execution #66

Open
jvergara-runbuggy opened this issue Jul 27, 2020 · 0 comments

Comments

@jvergara-runbuggy
Copy link

I have the following step:
stage: store
type: "helm"
arguments:
helm_version: 2.16.1
action: auth
commands:
- export IMAGE_TAG="${{CF_BRANCH_TAG_NORMALIZED}}-${{CF_SHORT_REVISION}}"
- export NAME=java-app-test
- sed -i -e 's, latest, '$IMAGE_TAG',g' $NAME/helm/$NAME/values.yaml > /tmp/values.yaml && cp /tmp/values.yaml $NAME/helm/$NAME

The codefresh pipeline execution fails because does not pass the single quotes to the image.
the command works inside a helm docker image.

here is the error:

`failed to prepare plugin, bad indentation of a sequence entry at line 6, column 310:

 ... s cannot be updated" sed -i -e 's, latest, '$IMAGE_TAG',g' $NAME ...                                                                       
                                     ^                                                                                                          

[SYSTEM]

Message bad indentation of a sequence entry at line 6, column 310:

                      ... s cannot be updated" sed -i -e 's, latest, '$IMAGE_TAG',g' $NAME ...    `
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

No branches or pull requests

1 participant