rundeck-cli icon indicating copy to clipboard operation
rundeck-cli copied to clipboard

SCM import setup error returns 0 exit code

Open Joris29 opened this issue 8 months ago • 0 comments

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.

Joris29 avatar Apr 28 '25 12:04 Joris29