Skip to content

SCM import setup error returns 0 exit code #580

@Joris29

Description

@Joris29

I would expect another exit code when i get an error.

[example@host ~]$ rd projects scm setup -p 'Test' -i import -t git-import -f /tmp/scm-import.json
Credentials for URL: http://localhost:4440
Enter password:
Setup config Validation for file: /tmp/scm-import.json failed
Some input values were not valid.
filePattern:
Invalid value: Invalid regular expression: Dangling meta character '*' near index 0
*.yaml
^

dir: required

[example@host ~]$ echo $?
0

This clearly fails and yet i get 0 as return value which is weird and seems like a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions