Skip to content

Should we hard exit if required parameters are not given? #5

@runlevel5

Description

@runlevel5

If the ejson file and private env are not present, the hook would fail hard with exit 1 which is okay in most scenarios. However I am wondering if it is possible to introduce a flag to graceful exit 0 because in my case I am using one template for many pipelines and some of them do not bundle secrets.ejson file. I've been working around this by having a script to detect the presence of required params then adding or removing the ejson2env plugin accordingly (which is fine though a bit clunky IMHO).

cc @stevehodgkiss

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