Skip to content

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

@jvergara-runbuggy

Description

@jvergara-runbuggy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions